color#

property Pen.color#

Return or set the pen’s color.

Examples

Set the pen’s color to red.

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