Skip to content

A handy Python package for plotting face-on and all-sky maps of the Milky Way using Matplotlib and Bokeh

License

Notifications You must be signed in to change notification settings

henrysky/milkyway_plot

Repository files navigation

https://raw.githubusercontent.com/henrysky/milkyway_plot/master/mw-plot-logo-b.png


PyPI - Version Documentation Status GitHub License GitHub Actions Workflow Status Codecov

Getting Started

mw-plot is a handy Python package for plotting face-on and all-sky maps of the Milky Way using matplotlib (https://matplotlib.org/) for static plots and bokeh (https://bokeh.org/) for interactive plots.

You can set the center and radius of the plot anywhere on a milkyway galaxy image with galactic or galactocentric coordinates.

Detailed documentation is available at https://milkyway-plot.readthedocs.io/

No acknowledgement to mw_plot is required if you generate plots for your non-commerical publication, but you must acknowledgement the origin of the background images. The relevant reference text can by obtained by the property citation of a mw_plot class instance.

For example, to get the citation text for the background image of a face-on Milky Way plot:

>>> from mw_plot import MWFaceOn
>>> mw = MWFaceOn()
>>> mw.citation
'NASA/JPL-Caltech/R. Hurt (SSC/Caltech)'

or for the background infrared image of an all-sky Milky Way plot:

>>> from mw_plot import MWSkyMap
>>> mw = MWSkyMap()
>>> mw.citation
'ESA/Gaia/DPAC'

Author

  • Henry Leung - henrysky
    Department of Astronomy & Astrophysics, University of Toronto
    Contact Henry: henrysky.leung [at] utoronto.ca

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A handy Python package for plotting face-on and all-sky maps of the Milky Way using Matplotlib and Bokeh

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published