Skip to content

Commit 9ea08fb

Browse files
authored
Merge pull request #9435 from clintval/cv_shadow_patch_zorder_init
Shadow patch now initializes zorder behind argument patch
2 parents a5c0164 + 0ce9525 commit 9ea08fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/patches.py

+4
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,10 @@ def __init__(self, patch, ox, oy, props=None, **kwargs):
621621

622622
def _update(self):
623623
self.update_from(self.patch)
624+
625+
# Place the shadow patch directly behind the inherited patch.
626+
self.set_zorder(np.nextafter(self.patch.zorder, -np.inf))
627+
624628
if self.props is not None:
625629
self.update(self.props)
626630
else:

0 commit comments

Comments
 (0)