@@ -319,7 +319,7 @@ def __init__(self, *args, **kwargs):
319
319
zs = kwargs .pop ('zs' , 0 )
320
320
zdir = kwargs .pop ('zdir' , 'z' )
321
321
self ._depthshade = kwargs .pop ('depthshade' , True )
322
- super (self . __class__ , self ). __init__ ( * args , ** kwargs )
322
+ PatchCollection . __init__ (self , * args , ** kwargs )
323
323
self .set_3d_properties (zs , zdir )
324
324
325
325
@@ -354,7 +354,7 @@ def do_3d_projection(self, renderer):
354
354
self ._edgecolor3d )
355
355
ecs = mcolors .colorConverter .to_rgba_array (ecs , self ._alpha )
356
356
self .set_edgecolors (ecs )
357
- super (self . __class__ , self ). set_offsets ( list (zip (vxs , vys )))
357
+ PatchCollection . set_offsets (self , list (zip (vxs , vys )))
358
358
359
359
if vzs .size > 0 :
360
360
return min (vzs )
@@ -386,11 +386,10 @@ def __init__(self, *args, **kwargs):
386
386
zs = kwargs .pop ('zs' , 0 )
387
387
zdir = kwargs .pop ('zdir' , 'z' )
388
388
self ._depthshade = kwargs .pop ('depthshade' , True )
389
- super (self . __class__ , self ). __init__ ( * args , ** kwargs )
389
+ PathCollection . __init__ (self , * args , ** kwargs )
390
390
self .set_3d_properties (zs , zdir )
391
391
392
-
393
- def set_sort_zpos (self ,val ):
392
+ def set_sort_zpos (self , val ):
394
393
'''Set the position to use for z-sorting.'''
395
394
self ._sort_zpos = val
396
395
@@ -421,7 +420,7 @@ def do_3d_projection(self, renderer):
421
420
self ._edgecolor3d )
422
421
ecs = mcolors .colorConverter .to_rgba_array (ecs , self ._alpha )
423
422
self .set_edgecolors (ecs )
424
- super (self . __class__ , self ). set_offsets ( list (zip (vxs , vys )))
423
+ PathCollection . set_offsets (self , list (zip (vxs , vys )))
425
424
426
425
if vzs .size > 0 :
427
426
return min (vzs )
@@ -441,7 +440,7 @@ def patch_collection_2d_to_3d(col, zs=0, zdir='z', depthshade=True):
441
440
collection along the *zdir* axis. Defaults to 0.
442
441
*zdir* The axis in which to place the patches. Default is "z".
443
442
*depthshade* Whether to shade the patches to give a sense of depth.
444
- Defaults to *True*.
443
+ Defaults to *True*.
445
444
446
445
"""
447
446
if isinstance (col , PathCollection ):
0 commit comments