@@ -539,9 +539,7 @@ 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 )
542
+ self ._shared_x_axes .clean ()
545
543
x0 , x1 = self .xy_dataLim .intervalx
546
544
xlocator = self .xaxis .get_major_locator ()
547
545
try :
@@ -558,9 +556,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
558
556
self .set_xbound (x0 , x1 )
559
557
560
558
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 )
559
+ self ._shared_y_axes .clean ()
564
560
y0 , y1 = self .xy_dataLim .intervaly
565
561
ylocator = self .yaxis .get_major_locator ()
566
562
try :
@@ -577,9 +573,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
577
573
self .set_ybound (y0 , y1 )
578
574
579
575
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 )
576
+ self ._shared_z_axes .clean ()
583
577
z0 , z1 = self .zz_dataLim .intervalx
584
578
zlocator = self .zaxis .get_major_locator ()
585
579
try :
@@ -1373,13 +1367,8 @@ def ticklabel_format(
1373
1367
raise ValueError ("scilimits must be a sequence of 2 integers" )
1374
1368
if style [:3 ] == 'sci' :
1375
1369
sb = True
1376
- elif style in [ 'plain' , 'comma' ] :
1370
+ elif style == 'plain' :
1377
1371
sb = False
1378
- if style == 'plain' :
1379
- cb = False
1380
- else :
1381
- cb = True
1382
- raise NotImplementedError ("comma style remains to be added" )
1383
1372
elif style == '' :
1384
1373
sb = None
1385
1374
else :
@@ -1696,7 +1685,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
1696
1685
norm = kwargs .pop ('norm' , None )
1697
1686
vmin = kwargs .pop ('vmin' , None )
1698
1687
vmax = kwargs .pop ('vmax' , None )
1699
- linewidth = kwargs .get ('linewidth' , None )
1700
1688
shade = kwargs .pop ('shade' , cmap is None )
1701
1689
lightsource = kwargs .pop ('lightsource' , None )
1702
1690
@@ -1732,7 +1720,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
1732
1720
# The construction leaves the array with duplicate points, which
1733
1721
# are removed here.
1734
1722
ps = list (zip (* ps ))
1735
- lastp = np .array ([])
1736
1723
ps2 = [ps [0 ]] + [ps [i ] for i in range (1 , len (ps )) if ps [i ] != ps [i - 1 ]]
1737
1724
avgzsum = sum (p [2 ] for p in ps2 )
1738
1725
polys .append (ps2 )
@@ -2005,9 +1992,8 @@ def plot_trisurf(self, *args, **kwargs):
2005
1992
norm = kwargs .pop ('norm' , None )
2006
1993
vmin = kwargs .pop ('vmin' , None )
2007
1994
vmax = kwargs .pop ('vmax' , None )
2008
- linewidth = kwargs .get ('linewidth' , None )
2009
1995
shade = kwargs .pop ('shade' , cmap is None )
2010
- lightsource = kwargs .pop ('lightsource' , None )
1996
+ kwargs .pop ('lightsource' , None )
2011
1997
2012
1998
tri , args , kwargs = Triangulation .get_from_args_and_kwargs (* args , ** kwargs )
2013
1999
if 'Z' in kwargs :
0 commit comments