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
Notes
- LINE_STYLESdict
Dictionary containing all allowed line styles as its keys.
# Style
Description
Example
""
Hidden
"-"
Solid
"--"
Dashed
":"
Dotted
"-."
Dash-dot
"-.."
Dash-dot-dot
Methods
Attributes