SHARE
TWEET

Untitled

a guest Jan 25th, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python3
  2. import matplotlib.pyplot as plt
  3. import numpy as np
  4. x, y = np.loadtxt('sqm_DX_001.dat', unpack = True)
  5. plt.plot(x,y,'.', label = 'Dati con $DX = 1$')
  6. x,y = np.loadtxt('sqm_DX_002.dat', unpack = True)
  7. plt.plot(x,y, label = 'Dati con $DX = 2$')
  8. x,y = np.loadtxt('sqm_DX_004.dat', unpack = True)
  9. plt.plot(x,y, label = 'Dati con $DX = 4$')
  10. x,y = np.loadtxt('sqm_DX_006.dat', unpack = True)
  11. plt.plot(x,y, label = 'Dati con $DX = 6$')
  12. x,y = np.loadtxt('sqm_DX_008.dat', unpack = True)
  13. plt.plot(x,y, label = 'Dati con $DX = 8$')
  14. x = np.arange(-100,100,1)
  15. y = x*x
  16. plt.plot(x,y, label ='DIO')
  17. plt.legend(loc='upper left')
  18. plt.grid()
  19. 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
Top