pyvista.plotting.charts.BoxPlot.toggle#

BoxPlot.toggle()[source]#

Toggle the plot’s visibility.

Examples

Create a box plot.

>>> import pyvista as pv
>>> chart = pv.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> plot = chart.plot
>>> chart.show()
../../../../_images/pyvista-plotting-charts-BoxPlot-toggle-2_00_00.png

Hide it.

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