how to flip plot in matplotlib code example
Example 1: flip pyplot python
plt.gca().invert_yaxis()
plt.gca().invert_xaxis()
Example 2: how do a plot on matplotlib python
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot(data)
#this is not nessisary but makes your plot more readable
plt.ylabel('y axis means ...')
plt.xlabel('x axis means ...')
Example 3: flip a plot matplotlib
plt.gca().invert_yaxis()