HOW TO: Draggable legend in matplotlib
- by Adam Fraser
QUESTION:
I'm drawing a legend on an axes object in matplotlib but the default positioning which claims to place it in a smart place doesn't seem to work. Ideally, I'd like to have the legend be draggable by the user. How can this be done?
SOLUTION:
Well, I found bits and pieces of the solution scattered among mailing lists. I've come up with a…