Skip to content

Commit 7f78c4e

Browse files
keflavichbsipocz
authored andcommitted
interpret all the plots!
1 parent e6100dd commit 7f78c4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/linelists/cdms/cdms.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@ other temperatures using curve fitting models:
224224
plt.clf()
225225
plt.scatter(temp,part,c='r',label='CDMS Data')
226226
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)
229230
plt.title('Partition Function vs Temperature')
230231
plt.xlabel('Temperature')
231232
plt.ylabel('Log10 of Partition Function')
@@ -245,7 +246,6 @@ We can then compare linear interpolation to the fitted interpolation above:
245246
.. plot::
246247
:context:
247248

248-
interp_Q = np.interp(x, temp, 10**part)
249249
plt.clf()
250250
plt.plot(x, (10**y-interp_Q)/10**y)
251251
plt.xlabel("Temperature")

0 commit comments

Comments
 (0)