Skip to content

Commit 357db6d

Browse files
committed
Fix missing Patch3DCollection._z_markers_idx
The issue is introduced by commit f888285: attribute `Patch3DCollection._z_markers_idx` is used within `_maybe_depth_shade_and_sort_colors()` function, but is never assigned. The same changes were done in the `Path3DCollection` class, but there attribute is set correctly within `set_3d_properties()` function. Assuming this is the expected behaviour, this commit also sets `_z_markers_idx` in `Patch3DCollection.set_3d_properties()`
1 parent 3cf46cb commit 357db6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ def set_3d_properties(self, zs, zdir):
462462
xs = []
463463
ys = []
464464
self._offsets3d = juggle_axes(xs, ys, np.atleast_1d(zs), zdir)
465+
self._z_markers_idx = slice(-1)
465466
self._vzs = None
466467
self.stale = True
467468

0 commit comments

Comments
 (0)