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

Commit1c65075

Browse files
authored
Merge pull request#19055 from alexiscoutinho/fix-AnnotationBbox-kwargs
Fix kwargs handling in AnnotationBbox
2 parentsa3d516b +1e16181 commit1c65075

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎lib/matplotlib/offsetbox.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ def __init__(self, offsetbox, xy,
13801380
Other parameters are identical to `.Annotation`.
13811381
"""
13821382

1383-
martist.Artist.__init__(self,**kwargs)
1383+
martist.Artist.__init__(self)
13841384
mtext._AnnotationBase.__init__(self,
13851385
xy,
13861386
xycoords=xycoords,
@@ -1424,6 +1424,8 @@ def __init__(self, offsetbox, xy,
14241424
ifbboxprops:
14251425
self.patch.set(**bboxprops)
14261426

1427+
self.update(kwargs)
1428+
14271429
@property
14281430
defxyann(self):
14291431
returnself.xybox

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp