python plot value on y axis wrong direction code example Example: invert y axis python plt.gca().invert_yaxis()