SHARE
TWEET

newfile.py

a guest Jun 15th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top