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 6138aa5

Browse filesBrowse files
committed
Another super()-ification.
1 parent c66a2a6 commit 6138aa5
Copy full SHA for 6138aa5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-5
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
+2-5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.