Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9ea08fb

Browse files
authored
Merge pull request#9435 from clintval/cv_shadow_patch_zorder_init
Shadow patch now initializes zorder behind argument patch
2 parentsa5c0164 +0ce9525 commit9ea08fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎lib/matplotlib/patches.py

Lines 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
ifself.propsisnotNone:
625629
self.update(self.props)
626630
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp