Skip to content
Permalink
Browse files

fix a bug in draggable legend

  • Loading branch information
leejjoon committed Mar 3, 2011
1 parent 55ae1ec commit be420a34031c9c50813bc5be5f01a3cfb49639a1
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/matplotlib/offsetbox.py
@@ -1499,6 +1499,7 @@ def save_offset(self):
w, h, xd, yd = offsetbox.get_extent(renderer)
offset = offsetbox.get_offset(w, h, xd, yd, renderer)
self.offsetbox_x, self.offsetbox_y = offset
self.offsetbox.set_offset(offset)

def update_offset(self, dx, dy):
loc_in_canvas = self.offsetbox_x + dx, self.offsetbox_y + dy

0 comments on commit be420a3

Please sign in to comment.
You can’t perform that action at this time.