matplotlib.axes.Axes.set_axisbelow

Axes.set_axisbelow(self, 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:
bbool 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, with default zorder = 1) but still below lines and markers (with their default zorder = 2).
  • False (zorder = 2.5): Ticks and gridlines are above patches and lines / markers.

See also

get_axisbelow

Examples using matplotlib.axes.Axes.set_axisbelow

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.2.2/api/_as_gen/matplotlib.axes.Axes.set_axisbelow.html