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

David Berry d.berry at jach.hawaii.edu
Thu Jun 12 02:41:25 EDT 2014


On 11 June 2014 22:45, Tim Jenness <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).

There is example plotting code in the section "...Display a Graphical
Coordinate Grid" at http://dsberry.github.io/starlink/node4.html with
some sample plots at the top of
http://dsberry.github.io/starlink/pyast.html

David



> --
> Tim Jenness
>
>
> On Wed, Jun 11, 2014 at 2:44 PM, Leo Singer <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
>> 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
>> 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