diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 96a9b8bd1ddb..c765522d5eb8 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -621,6 +621,10 @@ def __init__(self, patch, ox, oy, props=None, **kwargs): def _update(self): self.update_from(self.patch) + + # Place the shadow patch directly behind the inherited patch. + self.set_zorder(np.nextafter(self.patch.zorder, -np.inf)) + if self.props is not None: self.update(self.props) else: