pyvista.ChartMPL.visible#

property ChartMPL.visible[source]#

Return or set the chart’s visibility.

Examples

Create a matplotlib chart.

>>> import pyvista
>>> chart = pyvista.ChartMPL()
>>> plots = chart.figure.axes[0].plot([0, 1, 2], [2, 1, 3])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/89fc48ef92991c790b2efab3314b792a34d2d14a/95b27/_images/pyvista-chartmpl-visible-1_01_00.png

Hide it.

>>> chart.visible = False
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/beb44/_images/pyvista-chartmpl-visible-1_02_00.png