@@ -2860,7 +2860,8 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
28602860 method of Basemap instance.
28612861 ============== =======================================================
28622862
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()``.
28642865 """
28652866 # use great circle formula for a perfect sphere.
28662867 gc = pyproj .Geod (a = self .rmajor ,b = self .rminor )
@@ -2877,7 +2878,8 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
28772878 # Correct wrap around effect of great circles
28782879
28792880 # 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 ()
28812883
28822884 # since we know the difference between any two points, we can use this to find wrap arounds on the plot
28832885 max_dist = 1000 * del_s * 2
@@ -2900,7 +2902,7 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
29002902 p .codes = None
29012903 p .vertices = verts
29022904
2903- return p
2905+ return _p
29042906
29052907 def transform_scalar (self ,datin ,lons ,lats ,nx ,ny ,returnxy = False ,checkbounds = False ,order = 1 ,masked = False ):
29062908 """
0 commit comments