8000 Another super()-ification. · matplotlib/matplotlib@6138aa5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6138aa5

Browse files
committed
Another super()-ification.
1 parent c66a2a6 commit 6138aa5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/mpl_toolkits/axes_grid1/parasite_axes.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ def _get_base_axes_attr(self, attrname):
5959
class ParasiteAxesAuxTransBase(object):
6060
def __init__(self, parent_axes, aux_transform, viewlim_mode=None,
6161
**kwargs):
62-
6362
self.transAux = aux_transform
6463
self.set_viewlim_mode(viewlim_mode)
65-
66-
self._parasite_axes_class.__init__(self, parent_axes, **kwargs)
64+
super().__init__(parent_axes, **kwargs)
6765

6866
def _set_lim_and_transforms(self):
6967

@@ -188,8 +186,7 @@ def parasite_axes_auxtrans_class_factory(axes_class=None):
188186
parasite_axes_class = axes_class
189187
return type("%sParasiteAuxTrans" % parasite_axes_class.__name__,
190188
(ParasiteAxesAuxTransBase, parasite_axes_class),
191-
{'_parasite_axes_class': parasite_axes_class,
192-
'name': 'parasite_axes'})
189+
{'name': 'parasite_axes'})
193190

194191

195192
ParasiteAxesAuxTrans = parasite_axes_auxtrans_class_factory(

0 commit comments

Comments
 (0)
0