@@ -2318,7 +2318,7 @@ def drawparallels(self,circles,color='k',linewidth=1.,zorder=None, \
2318
2318
xd = (x [1 :]- x [0 :- 1 ])** 2
2319
2319
yd = (y [1 :]- y [0 :- 1 ])** 2
2320
2320
dist = np .sqrt (xd + yd )
2321
- if self .projection not in ['cyl' ,'rotpole' ]:
2321
+ if self .projection not in ['cyl' ,'rotpole' ]:
2322
2322
split = dist > self .rmajor / 10.
2323
2323
else :
2324
2324
split = dist > 1.
@@ -2602,7 +2602,7 @@ def addlon(meridians,madd):
2602
2602
xd = (x [1 :]- x [0 :- 1 ])** 2
2603
2603
yd = (y [1 :]- y [0 :- 1 ])** 2
2604
2604
dist = np .sqrt (xd + yd )
2605
- if self .projection not in ['cyl' ,'rotpole' ]:
2605
+ if self .projection not in ['cyl' ,'rotpole' ]:
2606
2606
split = dist > self .rmajor / 10.
2607
2607
else :
2608
2608
split = dist > 1.
@@ -3552,8 +3552,8 @@ def contour(self,x,y,data,*args,**kwargs):
3552
3552
# mask for points more than one grid length outside projection limb.
3553
3553
xx = ma .masked_where (x > 1.e20 , x )
3554
3554
yy = ma .masked_where (y > 1.e20 , y )
3555
- epsx = (xx [:,1 :]- xx [:,0 :- 1 ]).max ()
3556
- epsy = (yy [1 :,:]- yy [0 :- 1 ,:]).max ()
3555
+ epsx = np . abs (xx [:,1 :]- xx [:,0 :- 1 ]).max ()
3556
+ epsy = np . abs (yy [1 :,:]- yy [0 :- 1 ,:]).max ()
3557
3557
xymask = \
3558
3558
np .logical_or (np .greater (x ,self .xmax + epsx ),np .greater (y ,self .ymax + epsy ))
3559
3559
xymask = xymask + \
@@ -3655,8 +3655,8 @@ def contourf(self,x,y,data,*args,**kwargs):
3655
3655
xx = ma .masked_where (x > 1.e20 , x )
3656
3656
yy = ma .masked_where (y > 1.e20 , y )
3657
3657
if self .projection != 'omerc' :
3658
- epsx = (xx [:,1 :]- xx [:,0 :- 1 ]).max ()
3659
- epsy = (yy [1 :,:]- yy [0 :- 1 ,:]).max ()
3658
+ epsx = np . abs (xx [:,1 :]- xx [:,0 :- 1 ]).max ()
3659
+ epsy = np . abs (yy [1 :,:]- yy [0 :- 1 ,:]).max ()
3660
3660
else : # doesn't work for omerc (FIXME)
3661
3661
epsx = 0. ; epsy = 0
3662
3662
xymask = \
0 commit comments