pyvista.plotting.charts.PiePlot.colors

Contents

pyvista.plotting.charts.PiePlot.colors#

property PiePlot.colors[source]#

Return or set the plot’s colors.

These are the colors used for the different components drawn by this plot.

Examples

Set the pie plot’s colors manually.

>>> import pyvista as pv
>>> chart = pv.ChartPie([4, 3, 2, 1])
>>> plot = chart.plot
>>> plot.colors = ["b", "g", "r", "c"]
>>> chart.show()
../../../../_images/pyvista-plotting-charts-PiePlot-colors-2_00_00.png