@@ -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