pyvista.plotting.charts.AreaPlot.visible#

property AreaPlot.visible[source]#

Return or set the this plot’s visibility.

Examples

Create a area plot.

>>> import pyvista
>>> chart = pyvista.Chart2D()
>>> plot = chart.area([0, 1, 2], [0, 0, 1], [1, 3, 2])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/04bca55836b86de71fadaa353f0fd1c37e972ce1/f2f2c/_images/pyvista-plotting-charts-areaplot-visible-1_00_00.png

Hide it.

>>> plot.visible = False
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/01a85/_images/pyvista-plotting-charts-areaplot-visible-1_01_00.png