Skip to content

Commit 813ebfe

Browse files
author
Jeff Whitaker
committed
Merge pull request #132 from guziy/improve_pcolormesh_doc
added a note to the basemap.pcolor and basmap.pcolormesh methods, about ...
2 parents adb9e07 + d05025c commit 813ebfe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
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

0 commit comments

Comments
 (0)