Skip to main content
Version: Next

PlotData

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

Attributes

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

Methods

NameDescription
PlotData.add_data_scope_entity(entity)Add 1 entity to the Data Scope of a plot
PlotData.clear_data_scope()Cleares the complete data scope of a plot, i.e. all scope entities are removed at once
PlotData.display_data_create([parent])Function for internal use, not meant for scripting
PlotData.find_parent(type)Function steps up the tree and returns the first parent with given type
PlotData.get_data([visible, selected])Get data of plot
PlotData.get_deformations([visible, selected])Function used internally to query matching nodal deformations for a given plot
PlotData.get_element_indices([visible, selected])Get element indices (ACP internal element numbers starting from 0) of plot
PlotData.get_element_labels([visible, selected])Get element labels (element numbers as read from / written to mesh files) of plot
PlotData.get_full_description()This function returns information displayed together with the legend
PlotData.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
PlotData.remove_data_scope_entity(entity)Remove 1 entity to the Data Scope of a plot
PlotData.serialize()Serialize to Python string
PlotData.serialize_create_function()
PlotData.serialize_name_and_id()Helper function to serialize name and ID
PlotData.serialize_properties()Serialize to Python string
PlotData.serialize_python_only_attributes()
PlotData.update()
PlotData.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node