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
- plt.title ('Distribuzione di Bernoulli')
- x, y = np.loadtxt ('Bernoulli_12.dat', unpack = True)
- plt.plot (x,y, 'x', label = 'Dati importati da file esterno')
- plt.xlabel ('Valori di k')
- plt.ylabel ('Valori di P(k)')
- plt.savefig ('Bernoulli_12.png')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement