Skip to content

Commit 1c65075

Browse files
authored
Merge pull request #19055 from alexiscoutinho/fix-AnnotationBbox-kwargs
Fix kwargs handling in AnnotationBbox
2 parents a3d516b + 1e16181 commit 1c65075

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
if bboxprops:
14251425
self.patch.set(**bboxprops)
14261426

1427+
self.update(kwargs)
1428+
14271429
@property
14281430
def xyann(self):
14291431
return self.xybox

0 commit comments

Comments
 (0)
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