matplotlib.axes.Axes.xaxis_inverted

Axes.xaxis_inverted(self)

Return whether the x-axis is inverted.

The axis is inverted if the left value is larger than the right value.