canvas = FigureCanvas(self, -1, fig)
canvas.mpl_connect('pick_event',on_pick)
canvas.mpl_connect('motion_notify_event', motion_notify_callback)
SSkey1=wx.StaticText(canvas,-1,"SS",pos=(623,42))
SSkey2=wx.StaticText(canvas,-1,"C-Red",pos=(603,52))
我有这段代码,文本首先出现,但是当我调用canvas.draw()
它时会更新画布但会删除文本。我怎样才能使文本留在画布上?