Skip to content

pacesm/MagPyPlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MagPyPlot

MagPyPlot is an extension of the Python Matplotlib providing extra components to make easier plotting of geomagnetic field and related variables.

Installation

git clone https://github.com/pacesm/MagPyPlot
pip install ./MagPyPlot

Usage

Magnetic Local Time Polar Axes

from matplotlib.pyplot import subplot, show
from magpyplot import register_projections

# register MagPyPlot projections to Matplotlib
register_projections()


# MLT - North Pole
ax = subplot(1, 2, 1, projection="mlt_north")
ax.plot_night_patch() # optional dimming of the night half of the plot
ax.plot(mlt, lat, '.')


# MLT - South Pole
ax = subplot(1, 2, 1, projection="mlt_south")
ax.plot_night_patch() # optional dimming of the night half of the plot
ax.plot(mlt, lat, '.')

show()
...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages