Skip to content

Commit d05025c

Browse files
committed
added a note to the basemap.pcolor and basmap.pcolormesh methods, about dimension sizes of x, y, and data
1 parent 1d7664c commit d05025c

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
@@ -3336,6 +3336,10 @@ def pcolor(self,x,y,data,**kwargs):
33363336
33373337
Other \**kwargs passed on to matplotlib.pyplot.pcolor (or tricolor if
33383338
``tri=True``).
3339+
3340+
Note: (taken from matplotlib.pyplot.pcolor documentation)
3341+
Ideally the dimensions of x and y should be one greater than those of data;
3342+
if the dimensions are the same, then the last row and column of data will be ignored.
33393343
"""
33403344
ax, plt = self._ax_plt_from_kw(kwargs)
33413345
# allow callers to override the hold state by passing hold=True|False
@@ -3396,7 +3400,7 @@ def pcolormesh(self,x,y,data,**kwargs):
33963400
"""
33973401
Make a pseudo-color plot over the map
33983402
(see matplotlib.pyplot.pcolormesh documentation).
3399-
3403+
34003404
If ``latlon`` keyword is set to True, x,y are intrepreted as
34013405
longitude and latitude in degrees. Data and longitudes are
34023406
automatically shifted to match map projection region for cylindrical
@@ -3407,6 +3411,10 @@ def pcolormesh(self,x,y,data,**kwargs):
34073411
Extra keyword ``ax`` can be used to override the default axis instance.
34083412
34093413
Other \**kwargs passed on to matplotlib.pyplot.pcolormesh.
3414+
3415+
Note: (taken from matplotlib.pyplot.pcolor documentation)
3416+
Ideally the dimensions of x and y should be one greater than those of data;
3417+
if the dimensions are the same, then the last row and column of data will be ignored.
34103418
"""
34113419
ax, plt = self._ax_plt_from_kw(kwargs)
34123420
# allow callers to override the hold state by passing hold=True|False

0 commit comments

Comments
 (0)