Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import matplotlib.pyplot as plt
  3. import numpy as np
  4. plt.title ('Distribuzione di Bernoulli')
  5. x, y = np.loadtxt ('Bernoulli_12.dat', unpack = True)
  6. plt.plot (x,y, 'x', label = 'Dati importati da file esterno')
  7. plt.xlabel ('Valori di k')
  8. plt.ylabel ('Valori di P(k)')
  9. plt.savefig ('Bernoulli_12.png')
  10. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement