pyvista.ChartMPL.visible

Contents

pyvista.ChartMPL.visible#

property ChartMPL.visible[source]#

Return or set the chart’s visibility.

Examples

Create a matplotlib chart.

>>> import pyvista as pv
>>> chart = pv.ChartMPL()
>>> plots = chart.figure.axes[0].plot([0, 1, 2], [2, 1, 3])
>>> chart.show()
../../../../_images/pyvista-ChartMPL-visible-2_01_00.png

Hide it.

>>> chart.visible = False
>>> chart.show()
../../../../_images/pyvista-ChartMPL-visible-2_02_00.png