style

property Pen.style

Return or set the pen’s line style.

See Pen.LINE_STYLES for a list of allowed line styles.

Examples

>>> import pyvista
>>> chart = pyvista.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> plot.pen.style = '-.'
>>> chart.show()
../../../../_images/pyvista-plotting-charts-Pen-style-1_00_00.png