import matplotlib.pyplot as plt
import numpy as np
#result=[]
#f = open('testdata.txt')
#for line in open('testdata.txt'):
# line = f.readline()
# a = line.split(':')[1]
# a = a.split(' ')[0]
#result.append(a)
#print(result)
#result = pd.DataFrame(result)
#result.to_excel('data.xls')
#result.head()
data=np.loadtxt('data.txt')
plt.plot(data[:,0],data[:,1])
plt.xlabel('Iteration frequency')
plt.ylabel('merror')
plt.show()
import numpy as np
#result=[]
#f = open('testdata.txt')
#for line in open('testdata.txt'):
# line = f.readline()
# a = line.split(':')[1]
# a = a.split(' ')[0]
#result.append(a)
#print(result)
#result = pd.DataFrame(result)
#result.to_excel('data.xls')
#result.head()
data=np.loadtxt('data.txt')
plt.plot(data[:,0],data[:,1])
plt.xlabel('Iteration frequency')
plt.ylabel('merror')
plt.show()