pyvista.plotting.charts.BoxPlot.visible#

property BoxPlot.visible[source]#

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()
https://d33wubrfki0l68.cloudfront.net/c11fc5c93247d9b30facb770635b53e2f1b721b2/970c2/_images/pyvista-plotting-charts-boxplot-visible-1_00_00.png

Hide it.

>>> plot.visible = False
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/f9f79/_images/pyvista-plotting-charts-boxplot-visible-1_01_00.png