eplot

Mapdl.eplot(show_node_numbering=False, vtk=None, **kwargs)

Plots the currently selected elements.

APDL Command: EPLOT

Note

PyMAPDL plotting commands with vtk=True ignore any values set with the PNUM command.

Parameters
  • vtk (bool, optional) – Plot the currently selected elements using pyvista. Defaults to current use_vtk setting.

  • show_node_numbering (bool, optional) – Plot the node numbers of surface nodes.

  • **kwargs – See help(ansys.mapdl.core.plotter.general_plotter) for more keyword arguments related to visualizing using vtk.

Examples

>>> mapdl.clear()
>>> mapdl.prep7()
>>> mapdl.block(0, 1, 0, 1, 0, 1)
>>> mapdl.et(1, 186)
>>> mapdl.esize(0.1)
>>> mapdl.vmesh('ALL')
>>> mapdl.vgen(2, 'all')
>>> mapdl.eplot(show_edges=True, smooth_shading=True,
                show_node_numbering=True)

Save a screenshot to disk without showing the plot

>>> mapdl.eplot(background='w', show_edges=True, smooth_shading=True,
                window_size=[1920, 1080], savefig='screenshot.png',
                off_screen=True)