Skip to content

Commit 0bbf040

Browse files
committed
Merge pull request matplotlib#5030 from ericmjl/mep12_geo_demo.py
mep12 on geo_demo.py
2 parents 6c8c05d + 049818e commit 0bbf040

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

examples/pylab_examples/geo_demo.py

+14-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
import numpy as np
2-
#np.seterr("raise")
1+
import matplotlib.pyplot as plt
32

4-
from pylab import *
3+
plt.subplot(221, projection="aitoff")
4+
plt.title("Aitoff")
5+
plt.grid(True)
56

6-
subplot(221, projection="aitoff")
7-
title("Aitoff")
8-
grid(True)
7+
plt.subplot(222, projection="hammer")
8+
plt.title("Hammer")
9+
plt.grid(True)
910

10-
subplot(222, projection="hammer")
11-
title("Hammer")
12-
grid(True)
11+
plt.subplot(223, projection="lambert")
12+
plt.title("Lambert")
13+
plt.grid(True)
1314

14-
subplot(223, projection="lambert")
15-
title("Lambert")
16-
grid(True)
15+
plt.subplot(224, projection="mollweide")
16+
plt.title("Mollweide")
17+
plt.grid(True)
1718

18-
subplot(224, projection="mollweide")
19-
title("Mollweide")
20-
grid(True)
21-
22-
show()
19+
plt.show()

0 commit comments

Comments
 (0)