Skip to content

Commit bd3ba37

Browse files
committed
plot directive syntax testing
1 parent f68f199 commit bd3ba37

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

docs/linelists/cdms/cdms.rst

Lines changed: 6 additions & 11 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:: python
154+
.. plot::
155+
:context: reset
155156

156157
import matplotlib.pyplot as plt
157158
from astroquery.linelists.cdms import CDMS
@@ -199,11 +200,8 @@ other temperatures using curve fitting models:
199200
>>> plt.ylabel('Log10 of Partition Function')
200201

201202

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:
207205

208206
result = CDMS.get_species_table()
209207
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:
238236
>>> pl.xlabel("Temperature")
239237
>>> pl.ylabel("Fractional difference between linear and fitted")
240238

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:
246241

247242
result = CDMS.get_species_table()
248243
mol = result[result['TAG'] == 30501] #do not include signs of TAG for this

0 commit comments

Comments
 (0)