On Tue, Jun 16, 2009 at 10:39 PM, John Hunter wrote:
> On Tue, Jun 16, 2009 at 3:32 PM, Sebastian Haase
> wrote:> On Tue, Jun 16, 2009 at 6:54 PM, John
> Hunter wrote:
>
>> Is there a similar function (to im.set_array) for graph plots ?
>
> for lines you would use line.set_data (or set_ydata, set_x
On Tue, Jun 16, 2009 at 3:32 PM, Sebastian Haase
wrote:> On Tue, Jun 16, 2009 at 6:54 PM, John
Hunter wrote:
> Is there a similar function (to im.set_array) for graph plots ?
for lines you would use line.set_data (or set_ydata, set_xdata). Eg
http://matplotlib.sourceforge.net/examples/animation
On Tue, Jun 16, 2009 at 6:54 PM, John Hunter wrote:
> On Tue, Jun 16, 2009 at 11:42 AM, Randy Heiland wrote:
>> Can someone point me to the "best" way to dynamically update a 2D
>> [image] array (think of cellular automata)? E.g., this simple example
>> works, but gets sluggish after several itera
On Tue, Jun 16, 2009 at 11:42 AM, Randy Heiland wrote:
> Can someone point me to the "best" way to dynamically update a 2D
> [image] array (think of cellular automata)? E.g., this simple example
> works, but gets sluggish after several iterations:
Use im.set_array rather than making multiple call
Can someone point me to the "best" way to dynamically update a 2D
[image] array (think of cellular automata)? E.g., this simple example
works, but gets sluggish after several iterations:
import numpy as N
import pylab as P
nx = 20
ny = 20
c = N.zeros(nx*ny, dtype='int8')
c.resize(ny,nx)
ite