Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes bug in drawparallels when the radius of the sphere of the proje…

…ction is set to something other than the default.
  • Loading branch information...
commit 35470b51523e9429d26cefc911dca843264581b9 1 parent 23db4bb
@mollyswanson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/mpl_toolkits/basemap/__init__.py
View
2  lib/mpl_toolkits/basemap/__init__.py
@@ -835,7 +835,7 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
xd = (x[1:]-x[0:-1])**2
yd = (y[1:]-y[0:-1])**2
dist = np.sqrt(xd+yd)
- split = dist > 5000000.
+ split = dist > 5000000./6370997.0*self.projparams['R']
if np.sum(split) and self.projection not in _cylproj:
ind = (np.compress(split,np.squeeze(split*np.indices(xd.shape)))+1).tolist()
iprev = 0
Please sign in to comment.
Something went wrong with that request. Please try again.