From 0ce9525cb9bb3314319084c5a61e79c3d798dc7d Mon Sep 17 00:00:00 2001 From: clintval Date: Mon, 16 Oct 2017 09:50:53 -0700 Subject: [PATCH] Shadow now initializes zorder behind argument patch --- lib/matplotlib/patches.py | 4 ++++ 1 file changed, 4 insertions(+) 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: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy