pyvista.plotting.charts.BoxPlot.toggle#

BoxPlot.toggle()[source]#

Toggle the plot’s visibility.

Examples

Create a box plot.

>>> import pyvista
>>> chart = pyvista.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> plot = chart.plot
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/c11fc5c93247d9b30facb770635b53e2f1b721b2/c4f3b/_images/pyvista-plotting-charts-boxplot-toggle-1_00_00.png

Hide it.

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