8000 FIX : fix init order in AnnotationBbox · matplotlib/matplotlib@c1de4dd · GitHub
[go: up one dir, main page]

Skip to content

Commit c1de4dd

Browse files
committed
FIX : fix init order in AnnotationBbox
1 parent 30d1060 commit c1de4dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,13 @@ def __init__(self, offsetbox, xy,
13531353
13541354
other parameters are identical to that of Annotation.
13551355
"""
1356+
1357+
martist.Artist.__init__(self, **kwargs)
1358+
_AnnotationBase.__init__(self,
1359+
xy,
1360+
xycoords=xycoords,
1361+
annotation_clip=annotation_clip)
1362+
13561363
self.offsetbox = offsetbox
13571364

13581365
self.arrowprops = arrowprops
@@ -1377,13 +1384,6 @@ def __init__(self, offsetbox, xy,
13771384
self._arrow_relpos = None
13781385
self.arrow_patch = None
13791386

1380-
_AnnotationBase.__init__(self,
1381-
xy,
1382-
xycoords=xycoords,
1383-
annotation_clip=annotation_clip)
1384-
1385-
martist.Artist.__init__(self, **kwargs)
1386-
13871387
#self._fw, self._fh = 0., 0. # for alignment
13881388
self._box_alignment = box_alignment
13891389

0 commit comments

Comments
 (0)
0