Skip to content

Commit f68f199

Browse files
committed
add scipy as req for rtd builds, specify 'python' syntax & fix
whitespace in plots
1 parent 018ebab commit f68f199

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.rtd-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ dependencies:
1111
- matplotlib
1212
- numpy
1313
- requests
14+
- scipy
1415
- pip:
1516
- sphinx-astropy

docs/linelists/cdms/cdms.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ shown below:
151151
>>> plt.ylabel('Partition Function Value')
152152
>>> plt.title('Parititon Fn vs Temp')
153153

154-
.. plot::
154+
.. plot:: python
155+
155156
import matplotlib.pyplot as plt
156157
from astroquery.linelists.cdms import CDMS
157158
from scipy.optimize import curve_fit
@@ -198,7 +199,8 @@ other temperatures using curve fitting models:
198199
>>> plt.ylabel('Log10 of Partition Function')
199200

200201

201-
.. plot::
202+
.. plot:: python
203+
202204
import matplotlib.pyplot as plt
203205
from astroquery.linelists.cdms import CDMS
204206
from scipy.optimize import curve_fit
@@ -236,7 +238,7 @@ We can then compare linear interpolation to the fitted interpolation above:
236238
>>> pl.xlabel("Temperature")
237239
>>> pl.ylabel("Fractional difference between linear and fitted")
238240

239-
.. plot::
241+
.. plot:: python
240242

241243
import matplotlib.pyplot as plt
242244
from astroquery.linelists.cdms import CDMS

0 commit comments

Comments
 (0)