Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- x=np.arange(1,5)
- #plt.plot(x,[xi**2 for xi in x])
- plt.title("simple")
- plt.plot(x,x*1.5,label='normal')
- plt.plot(x,x*3.0,label="fast")
- plt.plot(x,x*0.5,label="slow")
- plt.legend()
- plt.savefig("abc.png",dpi=2000)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement