Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c408392

Browse filesBrowse files
committed
Eliminate unused variables in axes3d
1 parent 5720387 commit c408392
Copy full SHA for c408392

File tree

Expand file treeCollapse file tree

3 files changed

+8
-18
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-18
lines changed

‎doc/api/next_api_changes/2018-04-22-ZHD.rst

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/2018-04-22-ZHD.rst
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Different exception types for undocumented options
22
--------------------------------------------------
33

4+
- Passing ``style='comma'`` to :meth:`~matplotlib.axes.Axes.ticklabel_format`
5+
was never supported. It now raises ``ValueError`` like all other
6+
unsupported styles, rather than ``NotImplementedError``.
7+
48
- Passing the undocumented ``xmin`` or ``xmax`` arguments to
59
:meth:`~matplotlib.axes.Axes.set_xlim` would silently override the ``left``
610
and ``right`` arguments. :meth:`~matplotlib.axes.Axes.set_ylim` and the

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,8 +2756,6 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
27562756
sb = True
27572757
elif style == 'plain':
27582758
sb = False
2759-
elif style == 'comma':
2760-
raise NotImplementedError("comma style remains to be added")
27612759
elif style == '':
27622760
sb = None
27632761
else:

‎lib/mpl_toolkits/mplot3d/axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+4-16Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
532532
_tight = self._tight = bool(tight)
533533

534534
if scalex and self._autoscaleXon:
535-
xshared = self._shared_x_axes.get_siblings(self)
536-
dl = [ax.dataLim for ax in xshared]
537-
bb = mtransforms.BboxBase.union(dl)
535+
self._shared_x_axes.clean()
538536
x0, x1 = self.xy_dataLim.intervalx
539537
xlocator = self.xaxis.get_major_locator()
540538
try:
@@ -551,9 +549,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
551549
self.set_xbound(x0, x1)
552550

553551
if scaley and self._autoscaleYon:
554-
yshared = self._shared_y_axes.get_siblings(self)
555-
dl = [ax.dataLim for ax in yshared]
556-
bb = mtransforms.BboxBase.union(dl)
552+
self._shared_y_axes.clean()
557553
y0, y1 = self.xy_dataLim.intervaly
558554
ylocator = self.yaxis.get_major_locator()
559555
try:
@@ -570,9 +566,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
570566
self.set_ybound(y0, y1)
571567

572568
if scalez and self._autoscaleZon:
573-
zshared = self._shared_z_axes.get_siblings(self)
574-
dl = [ax.dataLim for ax in zshared]
575-
bb = mtransforms.BboxBase.union(dl)
569+
self._shared_z_axes.clean()
576570
z0, z1 = self.zz_dataLim.intervalx
577571
zlocator = self.zaxis.get_major_locator()
578572
try:
@@ -1366,13 +1360,8 @@ def ticklabel_format(
13661360
raise ValueError("scilimits must be a sequence of 2 integers")
13671361
if style[:3] == 'sci':
13681362
sb = True
1369-
elif style in ['plain', 'comma']:
1363+
elif style == 'plain':
13701364
sb = False
1371-
if style == 'plain':
1372-
cb = False
1373-
else:
1374-
cb = True
1375-
raise NotImplementedError("comma style remains to be added")
13761365
elif style == '':
13771366
sb = None
13781367
else:
@@ -1720,7 +1709,6 @@ def plot_surface(self, X, Y, Z, *args, norm=None, vmin=None,
17201709
# The construction leaves the array with duplicate points, which
17211710
# are removed here.
17221711
ps = list(zip(*ps))
1723-
lastp = np.array([])
17241712
ps2 = [ps[0]] + [ps[i] for i in range(1, len(ps)) if ps[i] != ps[i-1]]
17251713
avgzsum = sum(p[2] for p in ps2)
17261714
polys.append(ps2)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.