Advertisement
Guest User

newfile.py

a guest
Jun 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. x=np.arange(1,5)
  4. #plt.plot(x,[xi**2 for xi in x])
  5. plt.title("simple")
  6. plt.plot(x,x*1.5,label='normal')
  7. plt.plot(x,x*3.0,label="fast")
  8. plt.plot(x,x*0.5,label="slow")
  9. plt.legend()
  10. plt.savefig("abc.png",dpi=2000)
  11. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement