Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- Iterlist = []
- Vallist = []
- myfile = open(r"./wynik_bg.txt", "r")
- lines = myfile.readlines()
- for line in lines:
- splitline = line.split()
- Iterlist.append(int(splitline[0]))
- Vallist.append(float(splitline[1]))
- plt.plot(Iterlist, Vallist)
- plt.xlabel("Iterations")
- plt.ylabel("Values")
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement