hide_axes

Chart2D.hide_axes()

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
>>> chart = pyvista.Chart2D()
>>> _ = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.hide_axes()
>>> chart.show()
../../../../_images/pyvista-Chart2D-hide_axes-1_00_00.png