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()
https://d33wubrfki0l68.cloudfront.net/105371dc2645aa17b464deb6851cce59f6cb9e4e/7b4be/_images/pyvista-plotting-charts-pen-color-2_00_00.png