Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 792ee18

Browse files
committed
Add very preliminary and experimental support for some geo projections.
svn path=/branches/transforms/; revision=4776
1 parent ca0f2db commit 792ee18

3 files changed

Lines changed: 619 additions & 1 deletion

File tree

examples/geo_demo.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import numpy as npy
2+
npy.seterr("raise")
3+
4+
from pylab import *
5+
6+
subplot(221, projection="aitoff")
7+
grid(True)
8+
9+
subplot(222, projection="hammer")
10+
grid(True)
11+
12+
subplot(223, projection="lambert")
13+
grid(True)
14+
15+
16+
show()

lib/matplotlib/projections/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from geo import AitoffAxes, HammerAxes, MolleweideAxes, LambertAxes
12
from polar import PolarAxes
23
from matplotlib import axes
34

@@ -21,7 +22,11 @@ def get_projection_names(self):
2122

2223
projection_registry.register(
2324
axes.Axes,
24-
PolarAxes)
25+
PolarAxes,
26+
AitoffAxes,
27+
HammerAxes,
28+
MolleweideAxes,
29+
LambertAxes)
2530

2631
def get_projection_class(projection):
2732
if projection is None:

0 commit comments

Comments
 (0)