You are reading an old version of the documentation (v3.0.3). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_axisbelow.html
Version 3.0.3
matplotlib
Fork me on GitHub

matplotlib.axes.Axes.set_axisbelow

Axes.set_axisbelow(b)

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:
b : bool or 'line'

Possible values:

  • True (zorder = 0.5): Ticks and gridlines are below all Artists.
  • 'line' (zorder = 1.5): Ticks and gridlines are above patches ( e.g. rectangles) but still below lines / markers.
  • False (zorder = 2.5): Ticks and gridlines are above patches and lines / markers.

See also

get_axisbelow