pyvista.Chart2D.hide_axes#

Chart2D.hide_axes()[source]#

Hide the x- and y-axis of this chart.

This includes all labels, ticks and the grid.

Examples

Create a 2D plot and hide the axes.

>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> _ = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.hide_axes()
>>> chart.show()
../../../../_images/pyvista-Chart2D-hide_axes-2_00_00.png