visible

property BoxPlot.visible

Return or set the this 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()
../../../../_images/pyvista-plotting-charts-BoxPlot-visible-1_00_00.png

Hide it.

>>> plot.visible = False
>>> chart.show()
../../../../_images/pyvista-plotting-charts-BoxPlot-visible-1_01_00.png