pyvista.plotting.charts.BoxPlot.visible#

property BoxPlot.visible[source]#

Return or set the this 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()
https://d33wubrfki0l68.cloudfront.net/c11fc5c93247d9b30facb770635b53e2f1b721b2/95519/_images/pyvista-plotting-charts-boxplot-visible-2_00_00.png

Hide it.

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