File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,8 @@ shown below:
151
151
>>> plt.ylabel(' Partition Function Value' )
152
152
>>> plt.title(' Parititon Fn vs Temp' )
153
153
154
- .. plot :: python
154
+ .. plot ::
155
+ :context: reset
155
156
156
157
import matplotlib.pyplot as plt
157
158
from astroquery.linelists.cdms import CDMS
@@ -199,11 +200,8 @@ other temperatures using curve fitting models:
199
200
>>> plt.ylabel(' Log10 of Partition Function' )
200
201
201
202
202
- .. plot :: python
203
-
204
- import matplotlib.pyplot as plt
205
- from astroquery.linelists.cdms import CDMS
206
- from scipy.optimize import curve_fit
203
+ .. plot ::
204
+ :context:
207
205
208
206
result = CDMS.get_species_table()
209
207
mol = result[result['TAG'] == 30501] #do not include signs of TAG for this
@@ -238,11 +236,8 @@ We can then compare linear interpolation to the fitted interpolation above:
238
236
>>> pl.xlabel(" Temperature" )
239
237
>>> pl.ylabel(" Fractional difference between linear and fitted" )
240
238
241
- .. plot :: python
242
-
243
- import matplotlib.pyplot as plt
244
- from astroquery.linelists.cdms import CDMS
245
- from scipy.optimize import curve_fit
239
+ .. plot ::
240
+ :context:
246
241
247
242
result = CDMS.get_species_table()
248
243
mol = result[result['TAG'] == 30501] #do not include signs of TAG for this
You can’t perform that action at this time.
0 commit comments