Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 357db6d

Browse filesBrowse 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
Copy full SHA for 357db6d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/mpl_toolkits/mplot3d/art3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/art3d.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.