Sep-20-2021, 06:52 PM
import matplotlib.pyplot as plt ex = [0,0.2,0.5,1] ey = [0.1, 1,2.5,4] #plot normal plaid = plt.scatter(ex, ey) #now reverse axes fig, ax = plt.subplots() ax.scatter(ex, ey) ax.set_xlim(1,0) ax.set_ylim(5,-1) ax.grid = True pltYou might use plt.show() - I was in a notebook so just used plt