nplot

Mapdl.nplot(nnum='', vtk=None, **kwargs)

APDL Command: NPLOT

Displays nodes.

Note

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

Parameters
  • nnum (bool, int, optional) –

    Node number key:

    • False : No node numbers on display (default).

    • True : Include node numbers on display.

    Note

    This parameter is only valid when vtk==True

  • vtk (bool, optional) – Plot the currently selected nodes using pyvista. Defaults to current use_vtk setting as set on the initialization of MAPDL.

Examples

Plot using VTK while showing labels and changing the background

>>> mapdl.prep7()
>>> mapdl.n(1, 0, 0, 0)
>>> mapdl.n(11, 10, 0, 0)
>>> mapdl.fill(1, 11, 9)
>>> mapdl.nplot(nnum=True, vtk=True, background='w', color='k',
                show_bounds=True)

Plot without using VTK

>>> mapdl.prep7()
>>> mapdl.n(1, 0, 0, 0)
>>> mapdl.n(11, 10, 0, 0)
>>> mapdl.fill(1, 11, 9)
>>> mapdl.nplot(vtk=False)

Notes

Only selected nodes [NSEL] are displayed. Elements need not be defined.