MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / DraggableAnnotation

Class DraggableAnnotation

lib/matplotlib/offsetbox.py:1677–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1675
1676
1677class DraggableAnnotation(DraggableBase):
1678 def __init__(self, annotation, use_blit=False):
1679 super().__init__(annotation, use_blit=use_blit)
1680 self.annotation = annotation
1681
1682 def save_offset(self):
1683 ann = self.annotation
1684 self.ox, self.oy = ann.get_transform().transform(ann.xyann)
1685
1686 def update_offset(self, dx, dy):
1687 ann = self.annotation
1688 ann.xyann = ann.get_transform().inverted().transform(
1689 (self.ox + dx, self.oy + dy))

Callers 1

draggableMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…