pyvista.plotting.charts.PiePlot.data

Contents

pyvista.plotting.charts.PiePlot.data#

property PiePlot.data[source]#

Retrieve the sizes of the drawn segments.

Examples

Create a pie plot and display the sizes.

>>> import pyvista as pv
>>> chart = pv.ChartPie([1, 2, 3])
>>> chart.plot.data
pyvista_ndarray([1, 2, 3])
>>> chart.show()
../../../../_images/pyvista-plotting-charts-PiePlot-data-2_00_00.png