toggle

ChartBox.toggle()

Toggle the chart’s visibility.

Examples

Create a boxplot chart.

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

Hide it.

>>> chart.toggle()
>>> chart.show()
../../../../_images/pyvista-ChartBox-toggle-1_01_00.png