Matplotlib will soon introduce a TextBox widget (possibly in version 2.1 (?)). See Its use in this example .
Until then, you can use Tkinter tkSimpleDialog to request a user comment.
w = tkSimpleDialog.askstring("Title", "Please type comment")
You can then annotate the last selected comment point.
Full example (which runs in python 2.7):
import numpy as np import matplotlib.pyplot as plt import Tkinter, tkSimpleDialog xy = [(0,0)] def onpick(event): ''' ''' if event.mouseevent.button == 1:

source share