pyvista.plotting.charts.Pen#
- class Pen(color='k', width=1, style='-', *, _wrap=None)[source]#
Pythonic wrapper for a VTK Pen, used to draw lines.
- Parameters:
- color
ColorLike
, default: âkâ Color of the lines drawn using this pen. Any color parsable by
pyvista.Color
is allowed.- width
float
, default: 1 Width of the lines drawn using this pen.
- style
str
, default: â-â Style of the lines drawn using this pen. See Pen.LINE_STYLES for a list of allowed line styles.
- color
- Other Parameters:
- _wrap
vtk.vtkPen
,optional
Wrap an existing VTK Pen instance. Defaults to
None
(no wrapping).
- _wrap
Notes
- LINE_STYLESdict
Dictionary containing all allowed line styles as its keys.
Line styles# Style
Description
Example
""
Hidden
"-"
Solid
"--"
Dashed
":"
Dotted
"-."
Dash-dot
"-.."
Dash-dot-dot
Methods
Attributes
Return or set the pen's color.
Return or set the pen's line style.
Return or set the pen's width.