Welcome to mw-plot’s documentation!
Note
Documentation on readthedocs is still under construction
A handy python package to do plotting on a face-on/edge-on milkyway/skymap with matplotlib (https://matplotlib.org/) for static plots or bokeh (https://bokeh.org/) for interactive plots (bokeh module under develop).
You can set the center and radius of the plot anywhere on a milkyway galaxy image with galactic or galactocentric coordinates.
Both MW_bg_annotate.jpg
and MW_bg_unannotate.jpg
are modified from an images by NASA/JPL-Caltech/R. Hurt (SSC/Caltech)
Both images are 5600x5600px with resolution of 24.2 light years per pixel.
MW_edgeon_edr3_unannotate.jpg
is modified from an images by ESA/Gaia/DPAC.
The image is 6500x3250px with resolution of 15.38 light years per pixel generated by ESA Gaia eDR3.
mw_plot
will fill pixels for region outside the pre-compiled images. 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 provided above.
Install
To install via pip
pip install mw_plot
If something is not working properly, try to upgrade first and then report it as an issue
pip install mw_plot --upgrade
OR clone the latest commit of mw_plot from github and install
System Requirement
- Python 3.6 or above
- astropy 4.0 or above
- Numpy 1.16.0 or above
- Matplotlib 3.1.0 or above
- Pillow 5.0.0 above
Matplotlib 2.2.3 has trouble to save pdf plot with this package. Please use Matplotlib >3.0 if you experience issue
git clone --depth=1 git://github.com/henrysky/milkyway_plot
python setup.py install