scipy plots upside down code example Example: flip pyplot python plt.gca().invert_yaxis() plt.gca().invert_xaxis()