pyvista.plotting.charts.Pen.color#

property Pen.color[source]#

Return or set the pen’s color.

Examples

Set the pen’s color to red.

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