@@ -536,9 +536,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
536
536
_tight = self ._tight = bool (tight )
537
537
538
538
if scalex and self ._autoscaleXon :
539
- xshared = self ._shared_x_axes .get_siblings (self )
540
- dl = [ax .dataLim for ax in xshared ]
541
- bb = mtransforms .BboxBase .union (dl )
539
+ self ._shared_x_axes .clean ()
542
540
x0 , x1 = self .xy_dataLim .intervalx
543
541
xlocator = self .xaxis .get_major_locator ()
544
542
try :
@@ -555,9 +553,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
555
553
self .set_xbound (x0 , x1 )
556
554
557
555
if scaley and self ._autoscaleYon :
558
- yshared = self ._shared_y_axes .get_siblings (self )
559
- dl = [ax .dataLim for ax in yshared ]
560
- bb = mtransforms .BboxBase .union (dl )
556
+ self ._shared_y_axes .clean ()
561
557
y0 , y1 = self .xy_dataLim .intervaly
562
558
ylocator = self .yaxis .get_major_locator ()
563
559
try :
@@ -574,9 +570,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
574
570
self .set_ybound (y0 , y1 )
575
571
576
572
if scalez and self ._autoscaleZon :
577
- zshared = self ._shared_z_axes .get_siblings (self )
578
- dl = [ax .dataLim for ax in zshared ]
579
- bb = mtransforms .BboxBase .union (dl )
573
+ self ._shared_z_axes .clean ()
580
574
z0 , z1 = self .zz_dataLim .intervalx
581
575
zlocator = self .zaxis .get_major_locator ()
582
576
try :
@@ -1370,13 +1364,8 @@ def ticklabel_format(
1370
1364
raise ValueError ("scilimits must be a sequence of 2 integers" )
1371
1365
if style [:3 ] == 'sci' :
1372
1366
sb = True
1373
- elif style in [ 'plain' , 'comma' ] :
1367
+ elif style == 'plain' :
1374
1368
sb = False
1375
- if style == 'plain' :
1376
- cb = False
1377
- else :
1378
- cb = True
1379
- raise NotImplementedError ("comma style remains to be added" )
1380
1369
elif style == '' :
1381
1370
sb = None
1382
1371
else :
@@ -1724,7 +1713,6 @@ def plot_surface(self, X, Y, Z, *args, norm=None, vmin=None,
1724
1713
# The construction leaves the array with duplicate points, which
1725
1714
# are removed here.
1726
1715
ps = list (zip (* ps ))
1727
- lastp = np .array ([])
1728
1716
ps2 = [ps [0 ]] + [ps [i ] for i in range (1 , len (ps )) if ps [i ] != ps [i - 1 ]]
1729
1717
avgzsum = sum (p [2 ] for p in ps2 )
1730
1718
polys .append (ps2 )
0 commit comments