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 f11a881

Browse filesBrowse files
committed
FIX: remove unnecessary self in super_-calls, fixes #12265
1 parent f4a7fea commit f11a881
Copy full SHA for f11a881

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎lib/mpl_toolkits/axes_grid1/parasite_axes.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid1/parasite_axes.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ def _pcolor(self, super_pcolor, *XYC, **kwargs):
104104
X, Y, C = XYC
105105

106106
if "transform" in kwargs:
107-
mesh = super_pcolor(self, X, Y, C, **kwargs)
107+
mesh = super_pcolor(X, Y, C, **kwargs)
108108
else:
109109
orig_shape = X.shape
110110
xyt = np.column_stack([X.flat, Y.flat])
111111
wxy = self.transAux.transform(xyt)
112112
gx = wxy[:, 0].reshape(orig_shape)
113113
gy = wxy[:, 1].reshape(orig_shape)
114-
mesh = super_pcolor(self, gx, gy, C, **kwargs)
114+
mesh = super_pcolor(gx, gy, C, **kwargs)
115115
mesh.set_transform(self._parent_axes.transData)
116116

117117
return mesh
@@ -138,14 +138,14 @@ def _contour(self, super_contour, *XYCL, **kwargs):
138138
CL = XYCL[2:]
139139

140140
if "transform" in kwargs:
141-
cont = super_contour(self, X, Y, *CL, **kwargs)
141+
cont = super_contour(X, Y, *CL, **kwargs)
142142
else:
143143
orig_shape = X.shape
144144
xyt = np.column_stack([X.flat, Y.flat])
145145
wxy = self.transAux.transform(xyt)
146146
gx = wxy[:, 0].reshape(orig_shape)
147147
gy = wxy[:, 1].reshape(orig_shape)
148-
cont = super_contour(self, gx, gy, *CL, **kwargs)
148+
cont = super_contour(gx, gy, *CL, **kwargs)
149149
for c in cont.collections:
150150
c.set_transform(self._parent_axes.transData)
151151

0 commit comments

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