matplotlib.axes.Axes.get_axisbelow

Axes.get_axisbelow(self)

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

Returns:
axisbelowbool or 'line'

See also

set_axisbelow