@@ -403,6 +403,16 @@ def __init__(self, *args, zs=0, zdir='z', depthshade=True, **kwargs):
403
403
super ().__init__ (* args , ** kwargs )
404
404
self .set_3d_properties (zs , zdir )
405
405
406
+ def set_facecolor (self , c ):
407
+ # docstring inherited
408
+ super ().set_facecolor (c )
409
+ self ._facecolor3d = self .get_facecolor ()
410
+
411
+ def set_edgecolor (self , c ):
412
+ # docstring inherited
413
+ super ().set_edgecolor (c )
414
+ self ._edgecolor3d = self .get_edgecolor ()
415
+
406
416
def set_sort_zpos (self , val ):
407
417
"""Set the position to use for z-sorting."""
408
418
self ._sort_zpos = val
@@ -491,6 +501,16 @@ def set_3d_properties(self, zs, zdir):
491
501
self ._linewidth3d = self .get_linewidth ()
492
502
self .stale = True
493
503
504
+ def set_facecolor (self , c ):
505
+ # docstring inherited
506
+ super ().set_facecolor (c )
507
+ self ._facecolor3d = self .get_facecolor ()
508
+
509
+ def set_edgecolor (self , c ):
510
+ # docstring inherited
511
+ super ().set_edgecolor (c )
512
+ self ._edgecolor3d = self .get_edgecolor ()
513
+
494
514
def do_3d_projection (self , renderer ):
495
515
xs , ys , zs = self ._offsets3d
496
516
vxs , vys , vzs , vis = proj3d .proj_transform_clip (xs , ys , zs , renderer .M )
@@ -722,10 +742,12 @@ def do_3d_projection(self, renderer):
722
742
return np .nan
723
743
724
744
def set_facecolor (self , colors ):
745
+ # docstring inherited
725
746
super ().set_facecolor (colors )
726
747
self ._facecolors3d = PolyCollection .get_facecolor (self )
727
748
728
749
def set_edgecolor (self , colors ):
750
+ # docstring inherited
729
751
super ().set_edgecolor (colors )
730
752
self ._edgecolors3d = PolyCollection .get_edgecolor (self )
731
753
0 commit comments