pyvista.plotting.charts.Pen.style#

property Pen.style[source]#

Return or set the pen’s line style.

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

Examples

>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> plot.pen.style = '-.'
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/b11726774977691852246a647910326c7effe069/e3ed9/_images/pyvista-plotting-charts-pen-style-2_00_00.png