Animating Matplotlib panel - blit leaves old frames behind
问题 I have a wxPython application which contains a matplotlib panel (courtesy of wxmpl, though I've seen the same with a plain FigureCanvasWxAgg canvas). I'd want to animate one of the plots in the panel, and in the past I've made similar things happen. The way I'm doing it is the suggested: copy the background plot [...] restore background update line data draw artist blit The problem is that the plots, instead of being "overwritten" by the background restoring, stay there and the whole things