Skip to main content
Version: 2026R1

ContourData

class compolyx.plot_data.ContourData(graph, obj, parent=None, display_data=None)

Attributes

NameDescription
ContourData.activeWhether the plot is active or not; an inactive plot is not updated and it does not contain data
ContourData.active_display_dataReturns a dictionary containing display data for this plot owned by the active scene
ContourData.all_display_dataReturns a list of all display data classes in existence for this object
ContourData.changedStatus boolean
ContourData.color_table
ContourData.componentThe requested result component for a specific plot, e.g. s1 for the stress in the 1-direction
ContourData.componentsReturn the possible component set on this plot type
ContourData.data_scopeData scope of the plot where results will be evaluated
ContourData.definition_id
ContourData.description_changedStatus boolean.
ContourData.enabledWhether this object is currently enabled or not
ContourData.eval_positionThe finite element position at which the results are given, e.g. centroid or nodal
ContourData.has_element_wiseWhether the plot offers element-wise data
ContourData.has_ply_wiseWhether the plot offers ply-wise data
ContourData.idID of object
ContourData.is_dict_itemSpecifies whether the object is an item of a dict
ContourData.is_list_itemSpecifies whether the object is an item of a list
ContourData.link_pathRoot path of the current node in the tree for links to this object
ContourData.lockedReturns the locked status of the plot
ContourData.minmaxMin and max value of current data
ContourData.minmax_last_queryMin and max value of data of last query
ContourData.nameName of object
ContourData.parentParent object in tree
ContourData.ply_offset_scale_factorOffset scale factor
ContourData.ply_wiseWhether to plot ply-wise or element-wise
ContourData.requires_solution
ContourData.root_pathRoot path of the current node in the tree
ContourData.scope_entire_modelWhether the plot scope is the entire model or a subset defined by the data_scope
ContourData.show_on_solidsWhether to plot results on solid or shell elements
ContourData.show_ply_offsets
ContourData.solutionSolution underlying the plot
ContourData.solution_setSolution Set selection
ContourData.spotWhether to plot data at bot, mid or top of the layer or laminate
ContourData.spotsReturn the possible spot set on this plot type
ContourData.statusStatus of the object
ContourData.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
ContourData.uidUID of object
ContourData.updatedStatus boolean
ContourData.uptodateWhether the plot is uptodate
ContourData.vertexThis will throw an error if the object has been removed from the graph

Methods

NameDescription
ContourData.add_data_scope_entity(entity)Add 1 entity to the Data Scope of a plot
ContourData.clear_data_scope()Cleares the complete data scope of a plot, i.e. all scope entities are removed at once
ContourData.display_data_create([parent])Function for internal use, not meant for scripting
ContourData.find_parent(type)Function steps up the tree and returns the first parent with given type
ContourData.get_data([visible, selected])Get data of plot
ContourData.get_deformations([visible, selected])Function used internally to query matching nodal deformations for a given plot
ContourData.get_element_indices([visible, ...])Get element indices (ACP internal element numbers starting from 0) of plot
ContourData.get_element_labels([visible, ...])Get element labels (element numbers as read from / written to mesh files) of plot
ContourData.get_full_description()This function returns information displayed together with the legend
ContourData.get_ply_offsets([visible, selected])Get the offset between plies and reference surface
ContourData.obj_exists()Checks if __obj still references the C++ object (i.e. has not been reset to None by self._delete) and exists in the graph
ContourData.remove_data_scope_entity(entity)Remove 1 entity to the Data Scope of a plot
ContourData.serialize()Serialize to Python string
ContourData.serialize_create_function()
ContourData.serialize_name_and_id()Helper function to serialize name and ID
ContourData.serialize_properties()Serialize to Python string
ContourData.serialize_python_only_attributes()
ContourData.update()
ContourData.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node