matplotlib and PyQt: Dynamic figure runs slow after several loads or looks messy
问题 EDIT: I decided to rewrite this to include a working example of my problem. Although this is pretty long, I hope that it proves to be useful for many in the future. import sys from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure from PyQt4.QtGui import * from PyQt4.QtCore import * class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.setGeometry(100, 100, 640, 480) showButton = QPushButton(