Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bd536b

Browse files
committed
Correctly re-order scatter3d face/edgecolors.
They should be re-ordered regardless of depth shading, but rather dependent on whether there's more than one colour. Fixes #18287.
1 parent 18271f8 commit 5bd536b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,9 @@ def do_3d_projection(self, renderer):
509509
vzs = vzs[z_markers_idx]
510510
vxs = vxs[z_markers_idx]
511511
vys = vys[z_markers_idx]
512-
if self._depthshade:
512+
if len(fcs) > 1:
513513
fcs = fcs[z_markers_idx]
514+
if len(ecs) > 1:
514515
ecs = ecs[z_markers_idx]
515516
if len(sizes) > 1:
516517
sizes = sizes[z_markers_idx]

0 commit comments

Comments
 (0)