MapdlPlotter#
- class ansys.mapdl.core.plotting.MapdlPlotter(use_trame=False, theme=None, **plotter_kwargs)#
Plotter class for PyMAPDL.
This class is an implementation of the
PlotterInterface
class from the Visualization Interface Tool. The picker is implemented in PyMAPDL-specific classes due to the characteristics of the library.- Parameters:
- use_tramebool,
optional
Whether to use the Trame visualizer. The default is
False
.- theme
pv.DefaultTheme
,optional
Theme to use for the plotter. The default is
None
.
- use_tramebool,
Methods
MapdlPlotter.add_labels
(points, labels, ...)Add labels to the plotter.
MapdlPlotter.add_mesh
(meshes, points, labels, *)Adds a mesh to the plotter.
MapdlPlotter.add_points
(points, ...)Add points to the plotter.
MapdlPlotter.bc_nodes_plot
(mapdl, bc_labels)Plot nodes BC given a list of labels.
MapdlPlotter.bc_plot
([mapdl, bc_labels, ...])Plot boundary conditions.
Get the meshes plotted in the plotter.
MapdlPlotter.plot
(meshes, points, labels, *)Add an object to the plotter.
MapdlPlotter.plot_iter
(plotting_list[, ...])Add a list of objects to the plotter.
MapdlPlotter.show
([window_size, ...])Show the plotter.
Switches the backend scene to the given plotter.
Attributes
Return the meshes.
Return the scene.