@@ -2860,7 +2860,8 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
2860
2860
method of Basemap instance.
2861
2861
============== =======================================================
2862
2862
2863
- Returns a matplotlib.lines.Line2D object.
2863
+ Returns a list with a single ``matplotlib.lines.Line2D`` object like a
2864
+ call to ``pyplot.plot()``.
2864
2865
"""
2865
2866
# use great circle formula for a perfect sphere.
2866
2867
gc = pyproj .Geod (a = self .rmajor ,b = self .rminor )
@@ -2877,7 +2878,8 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
2877
2878
# Correct wrap around effect of great circles
2878
2879
2879
2880
# get points
2880
- p = self .plot (x ,y ,** kwargs )[0 ].get_path ()
2881
+ _p = self .plot (x ,y ,** kwargs )
2882
+ p = _p [0 ].get_path ()
2881
2883
2882
2884
# since we know the difference between any two points, we can use this to find wrap arounds on the plot
2883
2885
max_dist = 1000 * del_s * 2
@@ -2900,7 +2902,7 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
2900
2902
p .codes = None
2901
2903
p .vertices = verts
2902
2904
2903
- return p
2905
+ return _p
2904
2906
2905
2907
def transform_scalar (self ,datin ,lons ,lats ,nx ,ny ,returnxy = False ,checkbounds = False ,order = 1 ,masked = False ):
2906
2908
"""
0 commit comments