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 f000282

Browse filesBrowse files
committed
fix 3 useless assignments
1 parent ac601f6 commit f000282
Copy full SHA for f000282

File tree

Expand file treeCollapse file tree

3 files changed

+0
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+0
-3
lines changed

‎lib/matplotlib/backends/qt_compat.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/qt_compat.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ def _getSaveFileName(*args, **kwargs):
190190
_getSaveFileName = QtWidgets.QFileDialog.getSaveFileName
191191
except ImportError:
192192
# tried PySide2, failed, fall back to PySide
193-
QT_API = rcParams['backend.qt4']
194193
QT_RC_MAJOR_VERSION = 4
195194
QT_API = QT_API_PYSIDE
196195

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,6 @@ def set_size_inches(self, w, h=None, forward=True):
717717
if not all(np.isfinite(_) for _ in (w, h)):
718718
raise ValueError('figure size must be finite not '
719719
'({}, {})'.format(w, h))
720-
dpival = self.dpi
721720
self.bbox_inches.p1 = w, h
722721

723722
if forward:

‎lib/matplotlib/stackplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/stackplot.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def stackplot(axes, x, *args, **kwargs):
8686

8787
elif baseline == 'weighted_wiggle':
8888
m, n = y.shape
89-
center = np.zeros(n)
9089
total = np.sum(y, 0)
9190
# multiply by 1/total (or zero) to avoid infinities in the division:
9291
inv_total = np.zeros_like(total)

0 commit comments

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