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.

themepv.DefaultTheme, optional

Theme to use for the plotter. The default is None.

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.

MapdlPlotter.get_meshes_from_plotter()

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.

MapdlPlotter.switch_scene(pl)

Switches the backend scene to the given plotter.

Attributes

MapdlPlotter.meshes

Return the meshes.

MapdlPlotter.scene

Return the scene.