Skip to main content

A handy python package to do plotting on a face-on/edge-on/allsky map milkyway with matplotlib and bokeh

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mw_plot-0.13.1.tar.gz (38.4 MB view details)

Uploaded Source

File details

Details for the file mw_plot-0.13.1.tar.gz.

File metadata

  • Download URL: mw_plot-0.13.1.tar.gz
  • Upload date:
  • Size: 38.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for mw_plot-0.13.1.tar.gz
Algorithm Hash digest
SHA256 865b0f045d5d2ee02cf881bdc6000428b9a81c0f429bf66f341eb2a04715a860
MD5 2688593abdaa1d4e4cd30bc721c6ad1a
BLAKE2b-256 058ca1fedb427ab2a7b8c2393792d24222d163237ec82d5c7566b618d1b4f402

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page