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#
Download Python source code | Download Jupyter notebook
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()