How to invert the x or y axis September 23, 2022 by Tarik There is a new API that makes this even simpler. plt.gca().invert_xaxis() and/or plt.gca().invert_yaxis()