@@ -539,9 +539,6 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
539
539
_tight = self ._tight = bool (tight )
540
540
541
541
if scalex and self ._autoscaleXon :
542
- xshared = self ._shared_x_axes .get_siblings (self )
543
- dl = [ax .dataLim for ax in xshared ]
544
- bb = mtransforms .BboxBase .union (dl )
545
542
x0 , x1 = self .xy_dataLim .intervalx
546
543
xlocator = self .xaxis .get_major_locator ()
547
544
try :
@@ -558,9 +555,6 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
558
555
self .set_xbound (x0 , x1 )
559
556
560
557
if scaley and self ._autoscaleYon :
561
- yshared = self ._shared_y_axes .get_siblings (self )
562
- dl = [ax .dataLim for ax in yshared ]
563
- bb = mtransforms .BboxBase .union (dl )
564
558
y0 , y1 = self .xy_dataLim .intervaly
565
559
ylocator = self .yaxis .get_major_locator ()
566
560
try :
@@ -577,9 +571,6 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
577
571
self .set_ybound (y0 , y1 )
578
572
579
573
if scalez and self ._autoscaleZon :
580
- zshared = self ._shared_z_axes .get_siblings (self )
581
- dl = [ax .dataLim for ax in zshared ]
582
- bb = mtransforms .BboxBase .union (dl )
583
574
z0 , z1 = self .zz_dataLim .intervalx
584
575
zlocator = self .zaxis .get_major_locator ()
585
576
try :
@@ -1369,11 +1360,6 @@ def ticklabel_format(
1369
1360
sb = True
1370
1361
elif style in ['plain' , 'comma' ]:
1371
1362
sb = False
1372
- if style == 'plain' :
1373
- cb = False
1374
- else :
1375
- cb = True
1376
- raise NotImplementedError ("comma style remains to be added" )
1377
1363
elif style == '' :
1378
1364
sb = None
1379
1365
else :
@@ -1690,7 +1676,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
1690
1676
norm = kwargs .pop ('norm' , None )
1691
1677
vmin = kwargs .pop ('vmin' , None )
1692
1678
vmax = kwargs .pop ('vmax' , None )
1693
- linewidth = kwargs .get ('linewidth' , None )
1694
1679
shade = kwargs .pop ('shade' , cmap is None )
1695
1680
lightsource = kwargs .pop ('lightsource' , None )
1696
1681
@@ -1726,7 +1711,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
1726
1711
# The construction leaves the array with duplicate points, which
1727
1712
# are removed here.
1728
1713
ps = list (zip (* ps ))
1729
- lastp = np .array ([])
1730
1714
ps2 = [ps [0 ]] + [ps [i ] for i in range (1 , len (ps )) if ps [i ] != ps [i - 1 ]]
1731
1715
avgzsum = sum (p [2 ] for p in ps2 )
1732
1716
polys .append (ps2 )
0 commit comments