Invert an axis in a matplotlib grafic December 2, 2023 by Tarik As @Chris said, this can be done with: ax = plt.gca() ax.invert_yaxis() Before the ‘plt.show()’.