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()