Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3.  
  4.  
  5. Iterlist = []
  6. Vallist = []
  7. myfile = open(r"./wynik_bg.txt", "r")
  8.  
  9. lines = myfile.readlines()
  10. for line in lines:
  11. splitline = line.split()
  12. Iterlist.append(int(splitline[0]))
  13. Vallist.append(float(splitline[1]))
  14.  
  15. plt.plot(Iterlist, Vallist)
  16. plt.xlabel("Iterations")
  17. plt.ylabel("Values")
  18. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement