Skip to content

Commit

Permalink
FIX : reorder __init__ of OffsetBox
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed May 5, 2015
1 parent e4aed0c commit 03669ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/matplotlib/offsetbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,7 @@ def __init__(self, arr,
**kwargs
):

OffsetBox.__init__(self)
self._dpi_cor = dpi_cor

self.image = BboxImage(bbox=self.get_window_extent,
Expand All @@ -1243,8 +1244,6 @@ def __init__(self, arr,
self.set_zoom(zoom)
self.set_data(arr)

OffsetBox.__init__(self)

def set_data(self, arr):
self._data = np.asarray(arr)
self.image.set_data(self._data)
Expand Down

0 comments on commit 03669ce

Please sign in to comment.