@@ -532,9 +532,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
532
532
_tight = self ._tight = bool (tight )
533
533
534
534
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 ()
538
536
x0 , x1 = self .xy_dataLim .intervalx
539
537
xlocator = self .xaxis .get_major_locator ()
540
538
try :
@@ -551,9 +549,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
551
549
self .set_xbound (x0 , x1 )
552
550
553
551
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 ()
557
553
y0 , y1 = self .xy_dataLim .intervaly
558
554
ylocator = self .yaxis .get_major_locator ()
559
555
try :
@@ -570,9 +566,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
570
566
self .set_ybound (y0 , y1 )
571
567
572
568
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 ()
576
570
z0 , z1 = self .zz_dataLim .intervalx
577
571
zlocator = self .zaxis .get_major_locator ()
578
572
try :
@@ -1366,13 +1360,8 @@ def ticklabel_format(
1366
1360
raise ValueError ("scilimits must be a sequence of 2 integers" )
1367
1361
if style [:3 ] == 'sci' :
1368
1362
sb = True
1369
- elif style in [ 'plain' , 'comma' ] :
1363
+ elif style == 'plain' :
1370
1364
sb = False
1371
- if style == 'plain' :
1372
- cb = False
1373
- else :
1374
- cb = True
1375
- raise NotImplementedError ("comma style remains to be added" )
1376
1365
elif style == '' :
1377
1366
sb = None
1378
1367
else :
@@ -1720,7 +1709,6 @@ def plot_surface(self, X, Y, Z, *args, norm=None, vmin=None,
1720
1709
# The construction leaves the array with duplicate points, which
1721
1710
# are removed here.
1722
1711
ps = list (zip (* ps ))
1723
- lastp = np .array ([])
1724
1712
ps2 = [ps [0 ]] + [ps [i ] for i in range (1 , len (ps )) if ps [i ] != ps [i - 1 ]]
1725
1713
avgzsum = sum (p [2 ] for p in ps2 )
1726
1714
polys .append (ps2 )
0 commit comments