[AstroPy] plotting FITS/WCS in Python: APLpy, Pywcsgrid2

Thøger Emil Rivera-Thorsen trive at astro.su.se
Wed Jun 11 18:30:41 EDT 2014


The Kapteyn package also has some quite nifty looking plotting 
capabilities (built on matplotlib). Have not actually used it though.

http://www.astro.rug.nl/software/kapteyn/maputilstutorial.html#image-objects



On Wed 11 Jun 2014 11:50:13 PM CEST, John ZuHone wrote:
> The development version (v. 3.0, which is due for release within the
> next month or so) of yt (http://yt-project.org) supports FITS images:
>
> http://yt-project.org/docs/dev-3.0/examining/loading_data.html#fits-data
>
> These IPython notebooks show how to do plotting, which makes use of
> the (also in development) wcsaxes (http://wcsaxes.readthedocs.org)
> library for overplotting coordinates:
>
> http://yt-project.org/docs/dev-3.0/cookbook/fits_radio_cubes.html#radio-cubes
> http://yt-project.org/docs/dev-3.0/cookbook/fits_xray_images.html#xray-fits
>
> On Jun 11, 2014, at 5:45 PM, Tim Jenness <tim.jenness at gmail.com
> <mailto:tim.jenness at gmail.com>> wrote:
>
>> pyast also plots WCS grids and can use matplotlib (but the plotting
>> backend is pluggable so you can put your own in as well).
>>
>> --
>> Tim Jenness
>>
>>
>> On Wed, Jun 11, 2014 at 2:44 PM, Leo Singer <lsinger at caltech.edu
>> <mailto:lsinger at caltech.edu>> wrote:
>>
>>     Hi,
>>
>>     What are the current options for generating plots in Python from
>>     FITS/WCS data? I know of at least two Matplotlib-based projects:
>>
>>     APLpy, http://aplpy.github.io <http://aplpy.github.io/>
>>     Pywcsgrid2, http://leejjoon.github.io/pywcsgrid2/
>>
>>     Both generate very nice looking output. APLpy is under active
>>     development, but Pywcsgrid2 hasn't seen new patches in about a year.
>>
>>     These two projects have rather different designs. APLpy provides
>>     high-level operations built out of Matplotlib calls. On the other
>>     hand, Pywcsgrid2 is an Axes subclass that lets you use any
>>     Matplotlib plotting command, but in world or pixel coordinates.
>>
>>     I see the advantages of both approaches. The latter works better
>>     for me, because I often find that my plots involve delving into
>>     what I consider relatively esoteric Matplotlib techniques, such
>>     as insets, z-order, and annotation styles. For me, Pywcsgrid2
>>     works well because in almost every respect I am dealing with an
>>     ordinary Matplotlib figure.
>>
>>     Pywcsgrid2 needs some patches to work with the latest version of
>>     Astropy. I am working on getting them upstream, but I am
>>     considering forking the project if it is not being maintained. It
>>     looks like APLpy and Astropy have many of the same committers, so
>>     I thought I would ask here: would there be any interest in
>>     incorporating a Pywcsgrid2-like axes subclass into APLpy, to
>>     support either paradigm?
>>
>>     Are there other Python-based astronomical plotting projects
>>     should I be aware of?
>>
>>     Leo
>>     _______________________________________________
>>     AstroPy mailing list
>>     AstroPy at scipy.org <mailto:AstroPy at scipy.org>
>>     http://mail.scipy.org/mailman/listinfo/astropy
>>
>>
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy at scipy.org <mailto:AstroPy at scipy.org>
>> http://mail.scipy.org/mailman/listinfo/astropy
>
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy



More information about the AstroPy mailing list