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 0ce9525

Browse filesBrowse files
committed
Shadow now initializes zorder behind argument patch
1 parent b8daa99 commit 0ce9525
Copy full SHA for 0ce9525

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-0
lines changed

‎lib/matplotlib/patches.py

Copy file name to clipboardExpand all lines: lib/matplotlib/patches.py
+4Lines changed: 4 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.