[AstroPy] mollweide projection plotting (celestial sphere in Galactic coord) ?

Eduardo Bañados Torres eebanado@uc...
Wed Jun 19 16:26:45 CDT 2013


Some time ago I asked a related question here and in stackoverflow... I
think here is the answer you are looking for (you can do it all just in
matplotlib)

http://stackoverflow.com/questions/7355497/curious-bad-behavior-creating-all-sky-projections-with-matplotlib/7408280#7408280

Cheers,

Eduardo

On Wed, Jun 19, 2013 at 7:24 PM, Mubdi Rahman <rahman@astro.utoronto.ca>wrote:

> The built-in matplotlib way is fairly easy (using the "basemap" package):
> http://matplotlib.org/basemap/users/moll.html
>
> One note that I'd make is that when you define your basemap, make sure you
> use the flag "celestial=True" to get coordinates going in the right
> direction for astronomy.
>
>   ------------------------------
>  *From:* Kelle Cruz <kellecruz@gmail.com>
> *To:* Marshall Perrin <mperrin@stsci.edu>
> *Cc:* "<astropy@scipy.org>" <astropy@scipy.org>
> *Sent:* Wednesday, June 19, 2013 1:10:50 PM
> *Subject:* Re: [AstroPy] mollweide projection plotting (celestial sphere
> in Galactic coord) ?
>
> this is also included in one of the tutorials Adrian and I worked on:
>
> https://github.com/astropy/astropy-tutorials/blob/master/tutorials/Plot-Catalog/plot-catalog.py
>
>
> On Wed, Jun 19, 2013 at 12:21 PM, Marshall Perrin <mperrin@stsci.edu>wrote:
>
> On Jun 19, 2013, at 11:50 AM, Guillaume Blanc wrote:
> > I'm looking in a python library to plot a mollweide projection of the
> celestial sphere with some points and lines between two points... I tried
> using healpy, but the projplot function doesn't work well, and the plotting
> options look limited (well, it's not the main goal of that library,
> actually).
> >
> > To try to be clearer, I'd like to plot some objects in a projection of
> the celestial sphere in galactic coordinates with the standard mollweide
> projection, and plot as well some "lines" such as the celestial equator and
> so on...
> >
> > I'm sure something exist somewhere to do that!
>
>
> This can actually all be done in plain matplotlib, just by setting the
> 'projection' keyword when setting up the plot axes.
>
> See http://matplotlib.org/examples/pylab_examples/geo_demo.html
>
>
>  - Marshall
> _______________________________________________
> AstroPy mailing list
> AstroPy@scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
>
>
>
> --
> Kelle Cruz, PhD — http://kellecruz.com/
> 917.725.1334 — Hunter: x16486 — AMNH: x3404
>
> _______________________________________________
> AstroPy mailing list
> AstroPy@scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy@scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
>


-- 
Eduardo Bañados Torres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/astropy/attachments/20130619/f694d769/attachment-0001.html 


More information about the AstroPy mailing list