toggle#

PiePlot.toggle()#

Toggle the plot’s visibility.

Examples

Create a pie plot.

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

Hide it.

>>> plot.toggle()
>>> chart.show()
../../../../_images/pyvista-plotting-charts-PiePlot-toggle-1_01_00.png