pyvista.plotting.charts.Brush.color

Contents

pyvista.plotting.charts.Brush.color#

property Brush.color[source]#

Return or set the brush’s color.

Examples

Set the brush’s color to red.

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