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

Commit03669ce

Browse files
committed
FIX : reorder __init__ of OffsetBox
1 parente4aed0c commit03669ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎lib/matplotlib/offsetbox.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,7 @@ def __init__(self, arr,
12251225
**kwargs
12261226
):
12271227

1228+
OffsetBox.__init__(self)
12281229
self._dpi_cor=dpi_cor
12291230

12301231
self.image=BboxImage(bbox=self.get_window_extent,
@@ -1243,8 +1244,6 @@ def __init__(self, arr,
12431244
self.set_zoom(zoom)
12441245
self.set_data(arr)
12451246

1246-
OffsetBox.__init__(self)
1247-
12481247
defset_data(self,arr):
12491248
self._data=np.asarray(arr)
12501249
self.image.set_data(self._data)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp