pyvista.ChartPie.plot#

property ChartPie.plot[source]#

Return the PiePlot instance associated with this chart.

Examples

Create a pie plot with segments of increasing size.

>>> import pyvista
>>> chart = pyvista.ChartPie([1, 2, 3, 4, 5])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/c46815c87a38bc88a21d76e22a9afa1ad4a0e785/33211/_images/pyvista-chartpie-plot-1_00_00.png

Update the pie plot (segments of equal size).

>>> chart.plot.update([1, 1, 1, 1, 1])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/71857786c933788b527dc861d241e9ae2de21382/ea963/_images/pyvista-chartpie-plot-1_01_00.png