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

Skip to content

Commit 03669ce

Browse files
committed
FIX : reorder __init__ of OffsetBox
1 parent e4aed0c commit 03669ce

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
def set_data(self, arr):
12491248
self._data = np.asarray(arr)
12501249
self.image.set_data(self._data)

0 commit comments

Comments
 (0)