plot_nodal_pressure#
- PostProcessing.plot_nodal_pressure(show_node_numbering=False, **kwargs)#
Plot nodal pressure of the current result.
- Parameters:
- show_node_numberingbool,
optional
Plot the node numbers of surface nodes.
- **kwargs
dict
,optional
Keyword arguments passed to
MapdlPlotter
.
- show_node_numberingbool,
- 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
isTrue
.pyvista.Plotter
PyVista Plotter. In this case, the plotter is shown yet, so you can still edit it using PyVista Plotter methods. Only when
return_plotter
kwarg isTrue
.
Notes
If
vkt=True
(default), this function usesMapdlPlotter
You can pass key arguments toMapdlPlotter
usingkwargs
argument. For example,show_axes
,background
, etc.Examples
Plot the nodal pressure for the second result.
>>> mapdl.post1() >>> mapdl.set(1, 2) >>> mapdl.post_processing.plot_nodal_pressure()
Plot off_screen and save a screenshot
>>> mapdl.post_processing.plot_nodal_pressure(off_screen=True, ... savefig='temp_1_2.png')
Subselect a single result type and plot those stress results.
>>> mapdl.esel('S', 'TYPE', vmin=1) >>> mapdl.post_processing.plot_nodal_pressure(smooth_shading=True)