tkinter with matplotlib
问题 I read it is possible to embed a pyplot in tkinter, but I'm having a problem: I need to display some frames, among which a pyplot in a frame of the main Tkinter window, and it has to react to my keypresses. According to http://matplotlib.org/examples/user_interfaces/embedding_in_tk.html this works: #!/usr/bin/env python from Tkinter import * import matplotlib matplotlib.use('TkAgg') from numpy import arange, sin, pi from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg,