File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -224,8 +224,9 @@ other temperatures using curve fitting models:
224
224
plt.clf()
225
225
plt.scatter(temp,part,c='r',label='CDMS Data')
226
226
plt.plot(x,y,'k',label='Fitted')
227
- interp_Q = np.interp(x, temp, 10**part)
228
- plt.plot(x, np.log10(interp_Q), label='Interpolated')
227
+ inds = np.argsort(temp)
228
+ interp_Q = np.interp(x, temp[inds], 10**part[inds])
229
+ plt.plot(x, np.log10(interp_Q), label='Interpolated', linewidth=0.75)
229
230
plt.title('Partition Function vs Temperature')
230
231
plt.xlabel('Temperature')
231
232
plt.ylabel('Log10 of Partition Function')
@@ -245,7 +246,6 @@ We can then compare linear interpolation to the fitted interpolation above:
245
246
.. plot ::
246
247
:context:
247
248
248
- interp_Q = np.interp(x, temp, 10**part)
249
249
plt.clf()
250
250
plt.plot(x, (10**y-interp_Q)/10**y)
251
251
plt.xlabel("Temperature")
You can’t perform that action at this time.
0 commit comments