Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 623b98d

Browse files
committed
Eliminate unused variables in axes3d
1 parent 52bde45 commit 623b98d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,6 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
539539
_tight = self._tight = bool(tight)
540540

541541
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)
545542
x0, x1 = self.xy_dataLim.intervalx
546543
xlocator = self.xaxis.get_major_locator()
547544
try:
@@ -558,9 +555,6 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
558555
self.set_xbound(x0, x1)
559556

560557
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)
564558
y0, y1 = self.xy_dataLim.intervaly
565559
ylocator = self.yaxis.get_major_locator()
566560
try:
@@ -577,9 +571,6 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
577571
self.set_ybound(y0, y1)
578572

579573
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)
583574
z0, z1 = self.zz_dataLim.intervalx
584575
zlocator = self.zaxis.get_major_locator()
585576
try:
@@ -1369,11 +1360,6 @@ def ticklabel_format(
13691360
sb = True
13701361
elif style in ['plain', 'comma']:
13711362
sb = False
1372-
if style == 'plain':
1373-
cb = False
1374-
else:
1375-
cb = True
1376-
raise NotImplementedError("comma style remains to be added")
13771363
elif style == '':
13781364
sb = None
13791365
else:
@@ -1690,7 +1676,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
16901676
norm = kwargs.pop('norm', None)
16911677
vmin = kwargs.pop('vmin', None)
16921678
vmax = kwargs.pop('vmax', None)
1693-
linewidth = kwargs.get('linewidth', None)
16941679
shade = kwargs.pop('shade', cmap is None)
16951680
lightsource = kwargs.pop('lightsource', None)
16961681

@@ -1726,7 +1711,6 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
17261711
# The construction leaves the array with duplicate points, which
17271712
# are removed here.
17281713
ps = list(zip(*ps))
1729-
lastp = np.array([])
17301714
ps2 = [ps[0]] + [ps[i] for i in range(1, len(ps)) if ps[i] != ps[i-1]]
17311715
avgzsum = sum(p[2] for p in ps2)
17321716
polys.append(ps2)

0 commit comments

Comments
 (0)