Skip to content

Commit 50f5de0

Browse files
author
Jeff Whitaker
committed
Merge pull request #1 from matplotlib/master
merge changes from master
2 parents 475c586 + 1a1bed1 commit 50f5de0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3344,6 +3344,10 @@ def pcolor(self,x,y,data,**kwargs):
33443344
33453345
Other \**kwargs passed on to matplotlib.pyplot.pcolor (or tricolor if
33463346
``tri=True``).
3347+
3348+
Note: (taken from matplotlib.pyplot.pcolor documentation)
3349+
Ideally the dimensions of x and y should be one greater than those of data;
3350+
if the dimensions are the same, then the last row and column of data will be ignored.
33473351
"""
33483352
ax, plt = self._ax_plt_from_kw(kwargs)
33493353
# allow callers to override the hold state by passing hold=True|False
@@ -3404,7 +3408,7 @@ def pcolormesh(self,x,y,data,**kwargs):
34043408
"""
34053409
Make a pseudo-color plot over the map
34063410
(see matplotlib.pyplot.pcolormesh documentation).
3407-
3411+
34083412
If ``latlon`` keyword is set to True, x,y are intrepreted as
34093413
longitude and latitude in degrees. Data and longitudes are
34103414
automatically shifted to match map projection region for cylindrical
@@ -3415,6 +3419,10 @@ def pcolormesh(self,x,y,data,**kwargs):
34153419
Extra keyword ``ax`` can be used to override the default axis instance.
34163420
34173421
Other \**kwargs passed on to matplotlib.pyplot.pcolormesh.
3422+
3423+
Note: (taken from matplotlib.pyplot.pcolor documentation)
3424+
Ideally the dimensions of x and y should be one greater than those of data;
3425+
if the dimensions are the same, then the last row and column of data will be ignored.
34183426
"""
34193427
ax, plt = self._ax_plt_from_kw(kwargs)
34203428
# allow callers to override the hold state by passing hold=True|False

lib/mpl_toolkits/basemap/pyproj.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@
235235
"sphere": {'a':6370997.0,'b':6370997.0,'description':"Normal Sphere"},
236236
}
237237

238-
pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data'])
238+
if 'BASEMAPDATA' in os.environ:
239+
pyproj_datadir = os.environ['BASEMAPDATA']
240+
else:
241+
pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data'])
242+
239243
if not os.path.isdir(pyproj_datadir):
240244
msg="proj data directory not found. Expecting it at: %s"%pyproj_datadir
241245
raise IOError(msg)

0 commit comments

Comments
 (0)