Today APLpy 0.9.3 is out! It is a Python plotting package made to generate publication-quality plots in multiple formats such as EPS, PDF, PS, PNG, and SVG.
APLpy was created by Thomas Robitaille and Eli Bressert, who come from a Fortran and IDL background. With Python’s ease of use, portability, and programming they decided to make a plotting package for astronomers. APLpy’s objective is easy usage with great looking publication plots. In other words, more bang for the buck. Here’s an example of what an APLpy plot looks like:
To see more examples and how to make the plots in Python check out this link.
APLpy has quite a few features (some listed below – from the APLpy site) and is continuing to expand. Fortunately, there’s good documentation to accompany the features.
- Make plots interactively or using scripts
- Show grayscale, colorscale, and 3-color RGB images of FITS files
- Generate co-aligned FITS cubes to make 3-color RGB images
- Overlay any number of contour sets
- Overlay markers with fully customizable symbol
- Plot customizable shapes like circles, ellipses, and rectangles
- Overlay coordinate grids
- Customize the appearance of labels and ticks
- Hide, show, and remove different contour and marker layers
- Pan, zoom, and save any view as a full publication-quality plot
- Save plots as EPS, PDF, PS, PNG, and SVG
The plotting package is under active development and there has been extensive interaction between the users and developers. We should be seeing some exciting features added to APLpy in the next few releases.
{ 6 comments… read them below or add one }
can it make a sun symbol in postscript fonts!?!
I couldn’t access the APLpy gallery: https://sourceforge.net/apps/gallery/aplpy/index.php. It asked for a password…
The link to the gallery has been fixed. It was not supposed to ask an email and password, so that was an error .
Make a sun symbol in postscript fonts, now that’s a challenge! I’ll see if that can be done
How does this compare to ds9 or matplotlib? Does it use matplotlib underneath? And is this an eventual ds9 replacement? Just curious how you see the new package fitting in.
Can’t wait to play with it!
You might request that it gets included with the scisoft astronomy application bundle.
Thank you for the suggestion about scisoft! I’ll look into that
APLpy uses matplotlib, where its capabilities are extended for plotting FITS data. APLpy is not a replacement to ds9. In fact the APLpy developers are working with the ds9 team some projects.
In my view, ds9 is a necessary and powerful utility to dynamically explore FITS data. APLpy is a high end Pythonic FITS plotting package. They could be used as complimentary tools for astronomers.
I’ve used APLpy to display optical images with radio contours and catalog overlays. I like it very much.