matplotlibで動的に描画する時はdraw_idle

matplotlibで動的に描画する時はdraw_idleを使おう。

draw_idle(*args, **kwargs)[source] Request a widget redraw once control returns to the GUI event loop. Even if multiple calls to draw_idle occur before control returns to the GUI event loop, the figure will only be rendered once.