Skip to content

Commit 9f8eeab

Browse files
committed
FIX : reorder __init__ of OffsetBox
1 parent e4aed0c commit 9f8eeab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/offsetbox.py

+2-1
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,7 +1244,7 @@ def __init__(self, arr,
12431244
self.set_zoom(zoom)
12441245
self.set_data(arr)
12451246

1246-
OffsetBox.__init__(self)
1247+
12471248

12481249
def set_data(self, arr):
12491250
self._data = np.asarray(arr)

0 commit comments

Comments
 (0)