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

Skip to content

Commit f11a881

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/mpl_toolkits/axes_grid1/parasite_axes.py

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