self.axes.scatter(x,y, marker ='*',c=np.random.rand(len(x)), cmap = "jet")
self.draw()#重新绘制...class Widget(QtWidgets.QWidget):
def __init__(self):
super()....self.axes.cla()#清除已绘的图形
self.axes.plot([0, 1, 2, 3], l, 'r')
self.draw()#重新绘制...画布控件和普通PyQt的用法一样
#创建 matplotlib画布控件
sc = MyStaticMplCanvas(self.main_widget, width=5,...self.setCentralWidget(self.main_widget)
self.statusBar().showMessage("All hail matplotlib!"