pyvista.Chart2D.y_axis#

property Chart2D.y_axis[source]#

Return this chart’s vertical (y) Axis.

Examples

Create a 2D plot and hide the y axis.

>>> import pyvista
>>> chart = pyvista.Chart2D()
>>> _ = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.y_axis.toggle()
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/0bb8c7ec9f0fbfb3dcf4b203625ccc9c984c2a0e/7c532/_images/pyvista-chart2d-y_axis-1_00_00.png