File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
lib/matplotlib/projections Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -409,17 +409,19 @@ def get_yaxis_text2_transform(self, pad):
409
409
def _invalidate_internal (self , * args , ** kwargs ):
410
410
rmin , rmax = self .viewLim .intervaly
411
411
rorigin = self .get_rorigin ()
412
- inner = self .spines [ 'inner' ]
412
+ inner = self .spines . get ( 'inner' , None )
413
413
414
414
if rorigin < rmin :
415
415
width = (rmax - rmin ) / (rmax - rorigin ) * 0.5
416
416
self .patch .set_width (width )
417
- inner .set_visible (True )
418
- inner .set_patch_circle ((0.5 , 0.5 ), 0.5 - width )
417
+ if inner :
418
+ inner .set_visible (True )
419
+ inner .set_patch_circle ((0.5 , 0.5 ), 0.5 - width )
419
420
else :
420
421
self .patch .set_width (0.5 )
421
- inner .set_patch_circle ((0.5 , 0.5 ), 0.0 )
422
- inner .set_visible (False )
422
+ if inner :
423
+ inner .set_patch_circle ((0.5 , 0.5 ), 0.0 )
424
+ inner .set_visible (False )
423
425
424
426
for line in self .lines :
425
427
self ._update_line_limits (line )
You can’t perform that action at this time.
0 commit comments