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 e0b9c67

Browse filesBrowse files
committed
BUG : don't use super(self.__class__, self)
Simply remove super and explicitly call the correct base class. closes #3493
1 parent ef2ea6a commit e0b9c67
Copy full SHA for e0b9c67

File tree

Expand file treeCollapse file tree

1 file changed

+6
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-7
lines changed

‎lib/mpl_toolkits/mplot3d/art3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/art3d.py
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def __init__(self, *args, **kwargs):
319319
zs = kwargs.pop('zs', 0)
320320
zdir = kwargs.pop('zdir', 'z')
321321
self._depthshade = kwargs.pop('depthshade', True)
322-
super(self.__class__, self).__init__(*args, **kwargs)
322+
PatchCollection.__init__(self, *args, **kwargs)
323323
self.set_3d_properties(zs, zdir)
324324

325325

@@ -354,7 +354,7 @@ def do_3d_projection(self, renderer):
354354
self._edgecolor3d)
355355
ecs = mcolors.colorConverter.to_rgba_array(ecs, self._alpha)
356356
self.set_edgecolors(ecs)
357-
super(self.__class__, self).set_offsets(list(zip(vxs, vys)))
357+
PatchCollection.set_offsets(self, list(zip(vxs, vys)))
358358

359359
if vzs.size > 0 :
360360
return min(vzs)
@@ -386,11 +386,10 @@ def __init__(self, *args, **kwargs):
386386
zs = kwargs.pop('zs', 0)
387387
zdir = kwargs.pop('zdir', 'z')
388388
self._depthshade = kwargs.pop('depthshade', True)
389-
super(self.__class__, self).__init__(*args, **kwargs)
389+
PathCollection.__init__(self, *args, **kwargs)
390390
self.set_3d_properties(zs, zdir)
391391

392-
393-
def set_sort_zpos(self,val):
392+
def set_sort_zpos(self, val):
394393
'''Set the position to use for z-sorting.'''
395394
self._sort_zpos = val
396395

@@ -421,7 +420,7 @@ def do_3d_projection(self, renderer):
421420
self._edgecolor3d)
422421
ecs = mcolors.colorConverter.to_rgba_array(ecs, self._alpha)
423422
self.set_edgecolors(ecs)
424-
super(self.__class__, self).set_offsets(list(zip(vxs, vys)))
423+
PathCollection.set_offsets(self, list(zip(vxs, vys)))
425424

426425
if vzs.size > 0 :
427426
return min(vzs)
@@ -441,7 +440,7 @@ def patch_collection_2d_to_3d(col, zs=0, zdir='z', depthshade=True):
441440
collection along the *zdir* axis. Defaults to 0.
442441
*zdir* The axis in which to place the patches. Default is "z".
443442
*depthshade* Whether to shade the patches to give a sense of depth.
444-
Defaults to *True*.
443+
Defaults to *True*.
445444
446445
"""
447446
if isinstance(col, PathCollection):

0 commit comments

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