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()
../../../../_images/pyvista-ChartBox-visible-2_00_00.png

Hide it.

>>> chart.visible = False
>>> chart.show()
../../../../_images/pyvista-ChartBox-visible-2_01_00.png