You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 3.0.2.post1973+g9faf2313c
Fork me on GitHub



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.

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