@@ -532,9 +532,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
532532 _tight = self ._tight = bool (tight )
533533
534534 if scalex and self ._autoscaleXon :
535- xshared = self ._shared_x_axes .get_siblings (self )
536- dl = [ax .dataLim for ax in xshared ]
537- bb = mtransforms .BboxBase .union (dl )
535+ self ._shared_x_axes .clean ()
538536 x0 , x1 = self .xy_dataLim .intervalx
539537 xlocator = self .xaxis .get_major_locator ()
540538 try :
@@ -551,9 +549,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
551549 self .set_xbound (x0 , x1 )
552550
553551 if scaley and self ._autoscaleYon :
554- yshared = self ._shared_y_axes .get_siblings (self )
555- dl = [ax .dataLim for ax in yshared ]
556- bb = mtransforms .BboxBase .union (dl )
552+ self ._shared_y_axes .clean ()
557553 y0 , y1 = self .xy_dataLim .intervaly
558554 ylocator = self .yaxis .get_major_locator ()
559555 try :
@@ -570,9 +566,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
570566 self .set_ybound (y0 , y1 )
571567
572568 if scalez and self ._autoscaleZon :
573- zshared = self ._shared_z_axes .get_siblings (self )
574- dl = [ax .dataLim for ax in zshared ]
575- bb = mtransforms .BboxBase .union (dl )
569+ self ._shared_z_axes .clean ()
576570 z0 , z1 = self .zz_dataLim .intervalx
577571 zlocator = self .zaxis .get_major_locator ()
578572 try :
@@ -1366,13 +1360,8 @@ def ticklabel_format(
13661360 raise ValueError ("scilimits must be a sequence of 2 integers" )
13671361 if style [:3 ] == 'sci' :
13681362 sb = True
1369- elif style in [ 'plain' , 'comma' ] :
1363+ elif style == 'plain' :
13701364 sb = False
1371- if style == 'plain' :
1372- cb = False
1373- else :
1374- cb = True
1375- raise NotImplementedError ("comma style remains to be added" )
13761365 elif style == '' :
13771366 sb = None
13781367 else :
@@ -1720,7 +1709,6 @@ def plot_surface(self, X, Y, Z, *args, norm=None, vmin=None,
17201709 # The construction leaves the array with duplicate points, which
17211710 # are removed here.
17221711 ps = list (zip (* ps ))
1723- lastp = np .array ([])
17241712 ps2 = [ps [0 ]] + [ps [i ] for i in range (1 , len (ps )) if ps [i ] != ps [i - 1 ]]
17251713 avgzsum = sum (p [2 ] for p in ps2 )
17261714 polys .append (ps2 )
0 commit comments