From 049818e9b2fc678e7dcae27237afb0007761b9c4 Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Fri, 4 Sep 2015 12:29:28 -0400 Subject: [PATCH] mep12 on geo_demo.py --- examples/pylab_examples/geo_demo.py | 31 +++++++++++++---------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/examples/pylab_examples/geo_demo.py b/examples/pylab_examples/geo_demo.py index d38b0e9cbff9..c1b92f12d6eb 100644 --- a/examples/pylab_examples/geo_demo.py +++ b/examples/pylab_examples/geo_demo.py @@ -1,22 +1,19 @@ -import numpy as np -#np.seterr("raise") +import matplotlib.pyplot as plt -from pylab import * +plt.subplot(221, projection="aitoff") +plt.title("Aitoff") +plt.grid(True) -subplot(221, projection="aitoff") -title("Aitoff") -grid(True) +plt.subplot(222, projection="hammer") +plt.title("Hammer") +plt.grid(True) -subplot(222, projection="hammer") -title("Hammer") -grid(True) +plt.subplot(223, projection="lambert") +plt.title("Lambert") +plt.grid(True) -subplot(223, projection="lambert") -title("Lambert") -grid(True) +plt.subplot(224, projection="mollweide") +plt.title("Mollweide") +plt.grid(True) -subplot(224, projection="mollweide") -title("Mollweide") -grid(True) - -show() +plt.show()