lplot#
- Mapdl.lplot(nl1='', nl2='', ninc='', vtk=None, show_line_numbering=True, show_keypoint_numbering=False, color_lines=False, **kwargs)#
Display the selected lines.
APDL Command: LPLOT
Note
PyMAPDL plotting commands with
vtk=True
ignore any values set with thePNUM
command.- Parameters:
- nl1, nl2, ninc
Display lines from NL1 to NL2 (defaults to NL1) in steps of NINC (defaults to 1). If NL1 = ALL (default), NL2 and NINC are ignored and display all selected lines [LSEL].
- vtkbool,
optional
Plot the currently selected lines using
ansys-tools-visualization_interface
.- show_line_numberingbool,
optional
Display line and keypoint numbers when
vtk=True
.- show_keypoint_numberingbool,
optional
Number keypoints. Only valid when
show_keypoints=True
- color_linesbool,
optional
Color each line with a different color.
- **kwargs
See
ansys.mapdl.core.plotting.visualizer.MapdlPlotter
for more keyword arguments applicable when visualizing withvtk=True
.
Notes
Mesh divisions on plotted lines are controlled by the
ldiv
option of thepsymb
command whenvtk=False
. Otherwise, line divisions are controlled automatically.This command is valid in any processor.
Examples
>>> mapdl.lplot(vtk=True, cpos='xy', line_width=10)