pyvista.plotting.charts.PiePlot.toggle#

PiePlot.toggle()[source]#

Toggle the plot’s visibility.

Examples

Create a pie plot.

>>> import pyvista
>>> chart = pyvista.ChartPie([4, 3, 2, 1])
>>> plot = chart.plot
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/4d59ed20d1b3eeb4a1fe843d77c285b4fb1f4d77/be077/_images/pyvista-plotting-charts-pieplot-toggle-1_00_00.png

Hide it.

>>> plot.toggle()
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/52691/_images/pyvista-plotting-charts-pieplot-toggle-1_01_00.png