matplotlib.axes.Axes.set_axisbelow — Matplotlib 3.10.3 documentation (original) (raw)

Axes.set_axisbelow(b)[source]#

Set whether axis ticks and gridlines are above or below most artists.

This controls the zorder of the ticks and gridlines. For more information on the zorder see Zorder Demo.

Parameters:

bbool or 'line'

Possible values:

Notes

For more control, call the set_zorder method of each axis.