Showing posts with label idl. Show all posts
Showing posts with label idl. Show all posts

Monday, January 18, 2010

Easy ways of adding math/greek in your IDL plots

It's not straightforward to add greek letters, math etc in IDL plots. Fortunately, there are some libraries that make our life easier for this purpose:

TeXtoIDL

The purpose of the TeXtoIDL routines is to make it simple to use Greek letters, subscripts and superscripts in making labels for plots in IDL. This is accomplished by allowing the user to use TeX control sequences for Greek letters and special symbols and for sub/superscripts.

Example:
The command below uses textoidl to create a somewhat fancy X label.
IDL > plot, [0], [0], xtitle=textoidl("\rho^2 + 2\Gamma_{ij}")

Greek (Coyote Library)

Another way of inserting greek letters in your plots. The command greek('mu') for example returns a string with the greek letter mu.

Example:
IDL > Plot, [0], [0], XTitle='Wavelength (' + Greek('mu') + 'm)'

Monday, October 5, 2009

IDL for astronomers

I found an interesting blog entry that summarizes the basics of IDL for scientists. I personally think that IDL is much superior, regarding its resources for data analysis and plotting, than programs like Supermongo, Xmgrace (and its flavors), gnuplot and even Origin. The shortcoming is that IDL is not free and quite expensive, but you get what you pay for. I am curious though to learn how Python, supplemented with additional libraries, compares to IDL in this respect.

If you want to learn more about IDL, google for "idl tutorials" and check this guide of IDL for astronomers. The documentation (tutorials) included with IDL are also a nice way to start learning.

In addition, there are some pretty useful IDL libraries for astronomy that I listed.

Nota: a partir de agora vou passar a escrever alguns dos meus posts em inglês. Assim, algumas das informações compartilhadas neste blog poderão ser de utilidade a uma comunidade mais ampla.Link
 
Locations of visitors to this page