File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ dependencies:
11
11
- matplotlib
12
12
- numpy
13
13
- requests
14
+ - scipy
14
15
- pip :
15
16
- sphinx-astropy
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 ::
154
+ .. plot :: python
155
+
155
156
import matplotlib.pyplot as plt
156
157
from astroquery.linelists.cdms import CDMS
157
158
from scipy.optimize import curve_fit
@@ -198,7 +199,8 @@ other temperatures using curve fitting models:
198
199
>>> plt.ylabel(' Log10 of Partition Function' )
199
200
200
201
201
- .. plot ::
202
+ .. plot :: python
203
+
202
204
import matplotlib.pyplot as plt
203
205
from astroquery.linelists.cdms import CDMS
204
206
from scipy.optimize import curve_fit
@@ -236,7 +238,7 @@ We can then compare linear interpolation to the fitted interpolation above:
236
238
>>> pl.xlabel(" Temperature" )
237
239
>>> pl.ylabel(" Fractional difference between linear and fitted" )
238
240
239
- .. plot ::
241
+ .. plot :: python
240
242
241
243
import matplotlib.pyplot as plt
242
244
from astroquery.linelists.cdms import CDMS
You can’t perform that action at this time.
0 commit comments