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

Commite4aed0c

Browse files
committed
FIX : fix init order in AnnotationBbox
1 parentd8fd829 commite4aed0c

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)

[8]ページ先頭

©2009-2025 Movatter.jp