Category Archives: Python

Latex equations using SymPy

Latex equations using SymPy SymPy is a symbolic mathematics package in Python. Even if you are not interested in performing symbolic mathematical calculations, you should probably install it for one very useful function: sympy.latex(). sympy.latex() converts mathematical expressions into Latex … Continue reading

Posted in Python | Tagged , , | 3 Comments

Refractive index of air and wave length conversion

Refractive index of air Contents Examples Converting wave length of light from vacuum to that in air Converting wave length of light from air to that in vacuum Refractive index Installation Details Comparison with IDLASTRO code The Python module ref_index … Continue reading

Posted in Astronomy, Python | Tagged , | Leave a comment

Line id plot

[Update 2012/04/22: Following suggestions from Jane Rigby (see comments below), I have created a couple of functions for changing properties of labels. These exists as separate code in the following Github Gist: https://gist.github.com/2326396 .] Manually placing labels in a plot, … Continue reading

Posted in Astronomy, Python | Tagged , | 13 Comments