@@ -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 :
@@ -1361,13 +1352,8 @@ def ticklabel_format(
1361
1352
raise ValueError ("scilimits must be a sequence of 2 integers" )
1362
1353
if style [:3 ] == 'sci' :
1363
1354
sb = True
1364
- elif style in [ 'plain' , 'comma' ] :
1355
+ elif style == 'plain' :
1365
1356
sb = False
1366
- if style == 'plain' :
1367
- cb = False
1368
- else :
1369
- cb = True
1370
- raise NotImplementedError ("comma style remains to be added" )
1371
1357
elif style == '' :
1372
1358
sb = None
1373
1359
else :
@@ -1684,7 +1670,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
1684
1670
norm = kwargs .pop ('norm' , None )
1685
1671
vmin = kwargs .pop ('vmin' , None )
1686
1672
vmax = kwargs .pop ('vmax' , None )
1687
- linewidth = kwargs .get ('linewidth' , None )
1688
1673
shade = kwargs .pop ('shade' , cmap is None )
1689
1674
lightsource = kwargs .pop ('lightsource' , None )
1690
1675
@@ -1720,7 +1705,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
1720
1705
# The construction leaves the array with duplicate points, which
1721
1706
# are removed here.
1722
1707
ps = list (zip (* ps ))
1723
- lastp = np .array ([])
1724
1708
ps2 = [ps [0 ]] + [ps [i ] for i in range (1 , len (ps )) if ps [i ] != ps [i - 1 ]]
1725
1709
avgzsum = sum (p [2 ] for p in ps2 )
1726
1710
polys .append (ps2 )
0 commit comments