Ask Your Question

Revision history [back]

To take into acount the exponential nature of your data, you can use the loglog scale as follows:

sage: points(zip(x,expected), color='blue', marker='o', scale='loglog') + points(zip(x,simulated), color='red', marker='x', scale='loglog')

Now, since both experimental and theoretical data are very close to eachother, i would suggest to plot only one of them and then a plot that shows the percentage of error, like:

sage: error = [abs(a-b)/a*100 for a,b in zip(expected,simulated)]
sage: points(zip(x,expected), color='blue', marker='o', scale='loglog') + points(zip(x,error), color='red', marker='x', scale='loglog')