You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. Apply now!
Version 2.2.2.post1754+g0766e5365
matplotlib
Fork me on GitHub

Related Topics

Geographic ProjectionsΒΆ

This shows 4 possible projections using subplot. Matplotlib also supports Basemaps Toolkit and Cartopy for geographic projections.

import matplotlib.pyplot as plt
plt.figure()
plt.subplot(111, projection="aitoff")
plt.title("Aitoff")
plt.grid(True)
../../_images/sphx_glr_geo_demo_001.png
plt.figure()
plt.subplot(111, projection="hammer")
plt.title("Hammer")
plt.grid(True)
../../_images/sphx_glr_geo_demo_002.png
plt.figure()
plt.subplot(111, projection="lambert")
plt.title("Lambert")
plt.grid(True)
../../_images/sphx_glr_geo_demo_003.png
plt.figure()
plt.subplot(111, projection="mollweide")
plt.title("Mollweide")
plt.grid(True)

plt.show()
../../_images/sphx_glr_geo_demo_004.png

Keywords: matplotlib code example, codex, python plot, pyplot Gallery generated by Sphinx-Gallery