You are reading an old version of the documentation (v1.5.0). For the latest version see https://matplotlib.org/stable/

We're updating the default styles for Matplotlib 2.0

Learn what to expect in the new updates

matplotlib

Previous topic

pylab_examples example code: ganged_plots.py

Next topic

pylab_examples example code: ginput_demo.py

This Page

pylab_examples example code: geo_demo.pyΒΆ

(Source code, png, hires.png, pdf)

../../_images/geo_demo.png
import matplotlib.pyplot as plt

plt.subplot(221, projection="aitoff")
plt.title("Aitoff")
plt.grid(True)

plt.subplot(222, projection="hammer")
plt.title("Hammer")
plt.grid(True)

plt.subplot(223, projection="lambert")
plt.title("Lambert")
plt.grid(True)

plt.subplot(224, projection="mollweide")
plt.title("Mollweide")
plt.grid(True)

plt.show()

Keywords: python, matplotlib, pylab, example, codex (see Search examples)