Skip to content

Commit 2748507

Browse files
committed
drawgreatcircle() now correctly returns a Line2D object.
1 parent ddf92f1 commit 2748507

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,7 +2877,8 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
28772877
# Correct wrap around effect of great circles
28782878

28792879
# get points
2880-
p = self.plot(x,y,**kwargs)[0].get_path()
2880+
_p = self.plot(x,y,**kwargs)
2881+
p = _p[0].get_path()
28812882

28822883
# since we know the difference between any two points, we can use this to find wrap arounds on the plot
28832884
max_dist = 1000*del_s*2
@@ -2900,7 +2901,7 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
29002901
p.codes = None
29012902
p.vertices = verts
29022903

2903-
return p
2904+
return _p
29042905

29052906
def transform_scalar(self,datin,lons,lats,nx,ny,returnxy=False,checkbounds=False,order=1,masked=False):
29062907
"""

0 commit comments

Comments
 (0)