it is showing value error for converting string into float.
one of the line of my data file looks like this
100 1.2811559340137890E-003
I think maybe python can't understand E while converting. also following is my code
import math
import matplotlib.pyplot as plt
x = []
y = []
f= open('C:/Users/Dell/assignment2/error_n.dat', 'r')
for line in f:
line= line.split(' ')
x.append(line[0])
y.append(line[1])
for i in range(0,4):
x[i]=float(x[i])
x[i]=math.log(x[i])
y[i]=float(y[i])
y[i]=math.log(y[i])
plt.plot(y, x, marker = 'o', c = 'g')
plt.show()