Skip to content

Commit c524c82

Browse files
committed
improve the description of the fix_wrap_around keyword
1 parent a777789 commit c524c82

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4747,10 +4747,13 @@ def shiftdata(self,lonsin,datain=None,lon_0=None,fix_wrap_around=True):
47474747
datain original 1-d or 2-d data. Default None.
47484748
lon_0 center of map projection region. Defaut None,
47494749
given by current map projection.
4750-
fix_wrap_around if True try to shift longitudes (and data) to correctly
4751-
display the array in the selected projection. If False
4752-
do not attempt the longitudes or data fix for the
4753-
wrap-around.
4750+
fix_wrap_around if True reindex (if required) longitudes (and data) to
4751+
avoid jumps caused by remapping of longitudes of
4752+
points from outside of the (lon_0-180, lon_0+180)
4753+
interval back into the interval.
4754+
If False do not reindex longitudes and data, but do
4755+
make sure that longitudes are in the
4756+
(lon_0-180, lon_0+180) range.
47544757
============== ====================================================
47554758
47564759
if datain given, returns ``dataout,lonsout`` (data and longitudes shifted to fit in interval

0 commit comments

Comments
 (0)