matplotlib scatter x axis reverse code example
Example 1: flip pyplot python
plt.gca().invert_yaxis()
plt.gca().invert_xaxis()
Example 2: flip a plot matplotlib
plt.gca().invert_yaxis()
plt.gca().invert_yaxis()
plt.gca().invert_xaxis()
plt.gca().invert_yaxis()