    

 ## On this page

  

 

 # PlotData

 Last update: 16.07.2026 

<a id="compolyx.plot_data.PlotData"></a>

### *class* compolyx.plot\_data.PlotData(graph, obj, parent=None)

### Attributes

NameDescription[`PlotData.active`](compolyx.plot_data.PlotData.active.md#compolyx.plot_data.PlotData.active)Whether the plot is active or not; an inactive plot is not updated and it does not contain data.[`PlotData.active_display_data`](compolyx.plot_data.PlotData.active_display_data.md#compolyx.plot_data.PlotData.active_display_data)Returns a dictionary containing display data for this plot owned by the active scene.[`PlotData.all_display_data`](compolyx.plot_data.PlotData.all_display_data.md#compolyx.plot_data.PlotData.all_display_data)Returns a list of all display data classes in existence for this object.[`PlotData.changed`](compolyx.plot_data.PlotData.changed.md#compolyx.plot_data.PlotData.changed)Status boolean.[`PlotData.component`](compolyx.plot_data.PlotData.component.md#compolyx.plot_data.PlotData.component)The requested result component for a specific plot, for example s1 for the stress in the 1-direction.[`PlotData.components`](compolyx.plot_data.PlotData.components.md#compolyx.plot_data.PlotData.components)Return the possible component set on this plot type.[`PlotData.data_scope`](compolyx.plot_data.PlotData.data_scope.md#compolyx.plot_data.PlotData.data_scope)Data scope of the plot where results will be evaluated.[`PlotData.definition_id`](compolyx.plot_data.PlotData.definition_id.md#compolyx.plot_data.PlotData.definition_id)[`PlotData.description_changed`](compolyx.plot_data.PlotData.description_changed.md#compolyx.plot_data.PlotData.description_changed)Status boolean.[`PlotData.enabled`](compolyx.plot_data.PlotData.enabled.md#compolyx.plot_data.PlotData.enabled)Indicates whether the object is enabled.[`PlotData.eval_position`](compolyx.plot_data.PlotData.eval_position.md#compolyx.plot_data.PlotData.eval_position)The finite element position at which the results are given, for example centroid or nodal.[`PlotData.has_element_wise`](compolyx.plot_data.PlotData.has_element_wise.md#compolyx.plot_data.PlotData.has_element_wise)Whether the plot offers element-wise data.[`PlotData.has_ply_wise`](compolyx.plot_data.PlotData.has_ply_wise.md#compolyx.plot_data.PlotData.has_ply_wise)Whether the plot offers ply-wise data.[`PlotData.id`](compolyx.plot_data.PlotData.id.md#compolyx.plot_data.PlotData.id)ID of the object.[`PlotData.is_dict_item`](compolyx.plot_data.PlotData.is_dict_item.md#compolyx.plot_data.PlotData.is_dict_item)Indicates whether the object is an item in a dictionary.[`PlotData.is_list_item`](compolyx.plot_data.PlotData.is_list_item.md#compolyx.plot_data.PlotData.is_list_item)Indicates whether the object is an item of a list.[`PlotData.link_path`](compolyx.plot_data.PlotData.link_path.md#compolyx.plot_data.PlotData.link_path)Root path of the current node in the tree for links to this object.[`PlotData.locked`](compolyx.plot_data.PlotData.locked.md#compolyx.plot_data.PlotData.locked)Returns the locked status of the plot.[`PlotData.name`](compolyx.plot_data.PlotData.name.md#compolyx.plot_data.PlotData.name)Name of the object.[`PlotData.parent`](compolyx.plot_data.PlotData.parent.md#compolyx.plot_data.PlotData.parent)Parent object in the tree.[`PlotData.ply_wise`](compolyx.plot_data.PlotData.ply_wise.md#compolyx.plot_data.PlotData.ply_wise)Whether to plot ply-wise or element-wise.[`PlotData.requires_solution`](compolyx.plot_data.PlotData.requires_solution.md#compolyx.plot_data.PlotData.requires_solution)[`PlotData.root_path`](compolyx.plot_data.PlotData.root_path.md#compolyx.plot_data.PlotData.root_path)Root path of the current node in the tree.[`PlotData.scope_entire_model`](compolyx.plot_data.PlotData.scope_entire_model.md#compolyx.plot_data.PlotData.scope_entire_model)Whether the plot scope is the entire model or a subset defined by the data\_scope.[`PlotData.show_on_solids`](compolyx.plot_data.PlotData.show_on_solids.md#compolyx.plot_data.PlotData.show_on_solids)Whether to plot results on solid or shell elements.[`PlotData.solution`](compolyx.plot_data.PlotData.solution.md#compolyx.plot_data.PlotData.solution)Solution underlying the plot.[`PlotData.solution_set`](compolyx.plot_data.PlotData.solution_set.md#compolyx.plot_data.PlotData.solution_set)Solution Set selection.[`PlotData.spot`](compolyx.plot_data.PlotData.spot.md#compolyx.plot_data.PlotData.spot)Whether to plot data at bot, mid or top of the layer or laminate.[`PlotData.spots`](compolyx.plot_data.PlotData.spots.md#compolyx.plot_data.PlotData.spots)Return the possible spot set on this plot type.[`PlotData.status`](compolyx.plot_data.PlotData.status.md#compolyx.plot_data.PlotData.status)Status of the object.[`PlotData.status_changed`](compolyx.plot_data.PlotData.status_changed.md#compolyx.plot_data.PlotData.status_changed)Boolean flag which is set to true in C++ when up-to-date status of object changes.[`PlotData.uid`](compolyx.plot_data.PlotData.uid.md#compolyx.plot_data.PlotData.uid)UID of the object.[`PlotData.updated`](compolyx.plot_data.PlotData.updated.md#compolyx.plot_data.PlotData.updated)Status boolean.[`PlotData.uptodate`](compolyx.plot_data.PlotData.uptodate.md#compolyx.plot_data.PlotData.uptodate)Whether the plot is uptodate.[`PlotData.vertex`](compolyx.plot_data.PlotData.vertex.md#compolyx.plot_data.PlotData.vertex)Raises an error if the object has been removed from the graph.### Methods

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