pyvista.ChartBox.visible#

property ChartBox.visible[source]#

Return or set the chart’s visibility.

Examples

Create a boxplot chart.

>>> import pyvista as pv
>>> chart = pv.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/c11fc5c93247d9b30facb770635b53e2f1b721b2/61090/_images/pyvista-chartbox-visible-2_00_00.png

Hide it.

>>> chart.visible = False
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/b9b47/_images/pyvista-chartbox-visible-2_01_00.png