Commit f4aa0fa9a2ac8a404488e77ff87345efbb43da03

Authored by silicium
1 parent 7fa40df51d
Exists in master

min-max for plotting

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -45,8 +45,8 @@
45 45  
46 46 p[1].plot(data_waist[:,0], data_waist[:,1], 'bo')
47 47 p[1].plot(data_waist[:,0], -data_waist[:,1], 'bo')
48   -p[1].plot(numpy.linspace(data_waist[0,0], data_waist[-1,0], 100), W(numpy.linspace(data_waist[0,0], data_waist[-1,0], 100), *popt), 'r')
49   -p[1].plot(numpy.linspace(data_waist[0,0], data_waist[-1,0], 100), -W(numpy.linspace(data_waist[0,0], data_waist[-1,0], 100), *popt), 'r')
  48 +p[1].plot(numpy.linspace(min(data_waist[:,0]), max(data_waist[:,0]), 100), W(numpy.linspace(min(data_waist[:,0]), max(data_waist[:,0]), 100), *popt), 'r')
  49 +p[1].plot(numpy.linspace(min(data_waist[:,0]), max(data_waist[:,0]), 100), -W(numpy.linspace(min(data_waist[:,0]), max(data_waist[:,0]), 100), *popt), 'r')
50 50 p[1].grid()
51 51  
52 52 plt.show()