plot_nodal_values#

PostProcessing.plot_nodal_values(item, comp, show_node_numbering=False, **kwargs)#

Plot nodal values

Displays solution results as continuous element contours.

Equivalent MAPDL command:

  • PLNSOL

Parameters:
itemstr

Label identifying the item. See the table below in the notes section.

compstr, optional

Component of the item if applicable. See the table below in the notes section.

show_node_numberingbool, optional

Plot the node numbers of surface nodes.

**kwargsdict, optional

Keyword arguments passed to MapdlPlotter

Returns:
pyvista.plotting.renderer.CameraPosition

Camera position from plotter. Can be reused as an input parameter to use the same camera position for future plots. Only returned when return_cpos is True.

Notes

If vkt=True (default), this function uses MapdlPlotter You can pass key arguments to MapdlPlotter using kwargs argument. For example, show_axes , background, etc.

Examples

Plot the contact status for the selected elements.

>>> mapdl.post_processing.plot_nodal_values(
...     "CONT", "STAT", scalar_bar_args={"title": "Contact status"}
... )