Skip to content

Commit 816d929

Browse files
author
Jeff Whitaker
committed
make check for jumps in parallels and meridians stricter (issue #108)
1 parent 6911f4c commit 816d929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ def drawparallels(self,circles,color='k',linewidth=1.,zorder=None, \
23202320
dist = np.sqrt(xd+yd)
23212321
#split = dist > 500000.
23222322
# normalize by radius of sphere
2323-
split = dist > 5000000./6370997.0*self.rmajor
2323+
split = dist > self.rmajor/100000.
23242324
if np.sum(split) and self.projection not in _cylproj:
23252325
ind = (np.compress(split,np.squeeze(split*np.indices(xd.shape)))+1).tolist()
23262326
xl = []
@@ -2603,7 +2603,7 @@ def addlon(meridians,madd):
26032603
dist = np.sqrt(xd+yd)
26042604
#split = dist > 500000.
26052605
# normalize by radius of sphere
2606-
split = dist > 5000000./6370997.0*self.rmajor
2606+
split = dist > self.rmajor/1000000.
26072607
if np.sum(split) and self.projection not in _cylproj:
26082608
ind = (np.compress(split,np.squeeze(split*np.indices(xd.shape)))+1).tolist()
26092609
xl = []

0 commit comments

Comments
 (0)