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
>>> chart = pyvista.Chart2D()
>>> _ = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.hide_axes()
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/1ff078ed10d5e139efa4e96ee0776f36ce84d2d9/a6b34/_images/pyvista-chart2d-hide_axes-1_00_00.png