Skip to content

Commit 89b31f8

Browse files
committed
Fix incorrect docstring return order in shiftdata()
1 parent 7913a36 commit 89b31f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/basemap/src/mpl_toolkits/basemap/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4836,10 +4836,10 @@ def shiftdata(self,lonsin,datain=None,lon_0=None,fix_wrap_around=True):
48364836
[lon_0-180, lon_0+180] range.
48374837
================ ======================================================
48384838
4839-
if datain given, returns ``dataout,lonsout`` (data and longitudes shifted to fit in interval
4840-
[lon_0-180,lon_0+180]), otherwise just returns longitudes. If
4841-
transformed longitudes lie outside map projection region, data is
4842-
masked and longitudes are set to 1.e30.
4839+
If datain is given, returns ``lonsout, dataout`` (longitudes and data shifted to fit in the interval
4840+
[lon_0-180, lon_0+180]); otherwise, returns just the shifted longitudes. If
4841+
transformed longitudes lie outside the map projection region, data is
4842+
masked and longitudes are set to 1.e30.
48434843
"""
48444844
if lon_0 is None and 'lon_0' not in self.projparams:
48454845
raise ValueError('lon_0 keyword must be provided')

0 commit comments

Comments
 (0)