matplotlib.axes.Axes.get_axisbelow

Axes.get_axisbelow()

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

Returns
bool or 'line'

See also

set_axisbelow