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

Skip to content

Commit dd19aab

Browse files
committed
fix a bug an DraggableAnnotate reported by Daniel Hyams
1 parent 3f8e94f commit dd19aab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ def save_offset(self):
15331533

15341534
self.ox, self.oy = ox0, oy0
15351535
self.annotation.textcoords = "figure pixels"
1536+
self.update_offset(0, 0)
15361537

15371538
def update_offset(self, dx, dy):
15381539
ann = self.annotation

0 commit comments

Comments
 (0)