Permalink
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...
1 parent 23db4bb commit 35470b51523e9429d26cefc911dca843264581b9 @mollyswanson committed Nov 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 35470b5

Please sign in to comment.