DraggableBase

class eomaps.annotation_editor.DraggableBase(ref_artist, use_blit=False)

Helper base class for a draggable artist (legend, offsetbox).

This class is a copy of the DraggableBase class of matplotlib to handle the drawing of artists with EOmaps.

>>> from matplotlib.offsetbox import DraggableBase

Methods

__init__(ref_artist[,Β use_blit])

disconnect()

Disconnect the callbacks.

finalize_offset()

on_motion(evt)

on_pick(evt)

on_release(event)

save_offset()

update_offset(dx,Β dy)

Attributes

canvas