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

Skip to content

Commit f000282

Browse files
committed
fix 3 useless assignments
1 parent ac601f6 commit f000282

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

lib/matplotlib/backends/qt_compat.py

Lines 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

Lines 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

Lines 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)