That said, getting IDL to produce plots and graphics to look exactly how you want them to look is often tricky - especially when you want labels that include arcane units, such as the Angstrom (Å), or when you want to use super- or sub-script. It is popular in particular areas of science, such as astronomy, and is hugely powerful and versatile. IDL, short for Interactive Data Language, is a programming language used for data analysis. Plt.savefig(‘fig1.ps’,dpi=250, transparent=True) Although the experts on stackoverflow say the r prefix is needed, in my experience things seem to work just fine in matplotlib without the prefix.įrom _pdf import PdfPages So, for lambda, one would doĪnd so on for other greek characters. It’s published here as my own on-line archive of information, to be added to over time, but since it may turn out to be useful for others I’ve left it publicly viewable.ĭoing an Angstrom symbol for axis titles in plots:Įssentially, it is just the latex code with an r prefix. Below is a collection of Python stuff that may be useful for astronomers. Like many others, I’ve began moving over to Python for my plotting and high-level programming, mainly out of frustration with IDL’s license issues.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |