ChartPie.size#
- property ChartPie.size[source]#
Return or set the chart size in normalized coordinates.
A size of
(1, 1)occupies the whole renderer.
Examples#
Download Python source code | Download Jupyter notebook
Create a half-sized pie chart centered in the middle of the renderer.
>>> import pyvista as pv
>>> chart = pv.ChartPie([5, 4, 3, 2, 1])
>>> chart.size = (0.5, 0.5)
>>> chart.loc = (0.25, 0.25)
>>> chart.show()