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
>>> chart = pyvista.ChartPie([4, 3, 2, 1])
>>> plot = chart.plot
>>> plot.colors = ["b", "g", "r", "c"]
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/536d42df1c0751ae38a185094727977dc5f2ccec/e3dbe/_images/pyvista-plotting-charts-pieplot-colors-1_00_00.png