colors

property PiePlot.colors

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()
../../../../_images/pyvista-plotting-charts-PiePlot-colors-1_00_00.png