Skip to content

Commit 0ce9525

Browse files
committed
Shadow now initializes zorder behind argument patch
1 parent b8daa99 commit 0ce9525

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)