Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import matplotlib.pyplot as plt
- import numpy as np
- x, y = np.loadtxt('sqm_DX_001.dat', unpack = True)
- plt.plot(x,y,'.', label = 'Dati con $DX = 1$')
- x,y = np.loadtxt('sqm_DX_002.dat', unpack = True)
- plt.plot(x,y, label = 'Dati con $DX = 2$')
- x,y = np.loadtxt('sqm_DX_004.dat', unpack = True)
- plt.plot(x,y, label = 'Dati con $DX = 4$')
- x,y = np.loadtxt('sqm_DX_006.dat', unpack = True)
- plt.plot(x,y, label = 'Dati con $DX = 6$')
- x,y = np.loadtxt('sqm_DX_008.dat', unpack = True)
- plt.plot(x,y, label = 'Dati con $DX = 8$')
- x = np.arange(-100,100,1)
- y = x*x
- plt.plot(x,y, label ='DIO')
- plt.legend(loc='upper left')
- plt.grid()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement