Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # see image: http://imgur.com/aTKwLrr
- #
- # see another example: http://pastebin.com/RH76YYGn
- #
- import matplotlib.pyplot as plt
- y = list(range(10))
- x1 = [a**2 for a in y]
- x2 = [a**3 for a in y]
- plt.subplot('121')
- plt.plot(x1, y)
- plt.plot(x2, y)
- plt.subplot('122')
- plt.plot(y, x1)
- plt.plot(y, x2)
- plt.gca().invert_yaxis()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement