## [Matplotlib-users] 2d animation

 [Matplotlib-users] 2d animation From: Alastair Basden - 2005-10-27 12:04:33 Hi, I've recently started using pylab, and its not clear to me how to do a 2d animation. If I have a 3d numeric array (eg arr=RandomArray.randint(0,127,(100,256,256))) how can I display arr[0], then arr[1], then... The way I've tried seems to slow down as I progress, suggesting that its drawing all previous arrays before drawing the current one. Thanks...

 [Matplotlib-users] 2d animation From: Alastair Basden - 2005-10-27 12:04:33 Hi, I've recently started using pylab, and its not clear to me how to do a 2d animation. If I have a 3d numeric array (eg arr=RandomArray.randint(0,127,(100,256,256))) how can I display arr[0], then arr[1], then... The way I've tried seems to slow down as I progress, suggesting that its drawing all previous arrays before drawing the current one. Thanks...
 Re: [Matplotlib-users] 2d animation From: John Hunter - 2005-11-02 04:18:18 >>>>> "Alastair" == Alastair Basden writes: Alastair> Hi, I've recently started using pylab, and its not clear Alastair> to me how to do a 2d animation. Alastair> If I have a 3d numeric array (eg Alastair> arr=RandomArray.randint(0,127,(100,256,256))) how can I Alastair> display arr[0], then arr[1], then... Alastair> The way I've tried seems to slow down as I progress, Alastair> suggesting that its drawing all previous arrays before Alastair> drawing the current one. Have you looked at the animation examples that come with the matplotlib distribution? matplotlib/examples> ls *anim* dynamic_* sys* animation_blit_fltk.py anim.py dynamic_image_gtkagg.py animation_blit.py anim_tk.py dynamic_image_wxagg2.py animation_blit_tk.py dynamic_demo.py dynamic_image_wxagg.py animation_blit_wx.py dynamic_demo_wx.py system_monitor.py
 Re: [Matplotlib-users] 2d animation From: Alastair Basden - 2005-11-02 09:32:38 ls *anim* dynamic_* sys*