You are reading an old version of the documentation (v1.4.3). 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 numpy as np
#np.seterr("raise")

from pylab import *

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

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

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

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

show()

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