Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement