mpldatacursor
mpldatacursor copied to clipboard
`keep_inside` has no effect
It does not keep the annotation within the figure (tested on 1.5.1 and 2.0b1). On a related note, I noticed that deletion click events on annotations that are outside of their parent axes are not registered. Dragging works fine, though.
@anntzer - Sorry for my delay on this.
Which backend are you on? It works perfectly for me (tested on TkAgg and Qt4Agg on Linux).
Note that it only applies to keeping the annotation inside the figure, not inside the axes, though. It's deliberately not indented to keep the annotation inside the axes.
Tried with tkagg, qt4agg and qt5agg, mpl 2.0b2 on linux.
Run
plot([0, 1]); tight_layout(); datacursor()
and click close to the (1, 1) point:
