Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7845382

Browse files
Fix kwargs handling in AnnotationBbox
1 parent f04cf57 commit 7845382

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 4 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,9 @@ def __init__(self, offsetbox, xy,
14241424
if bboxprops:
14251425
self.patch.set(**bboxprops)
14261426

1427+
if len(kwargs):
1428+
self.update(kwargs)
1429+
14271430
@property
14281431
def xyann(self):
14291432
return self.xybox

0 commit comments

Comments
 (0)