On Tue, Oct 7, 2008 at 8:10 AM, Alexander Borghgraef
<[EMAIL PROTECTED]> wrote:
> I'm trying to figure out how to do animated graphics in pylab using
> imshow, so I made this little 'hello world' equivalent showing a
> moving square over two frames.
> Problem is I have to call draw twice to refresh
On Wed, Oct 8, 2008 at 12:23 AM, Michael <[EMAIL PROTECTED]> wrote:
> loop through the data and call clf():
>
> from pylab import *
> from numpy import *
>
> ion()
> hold(False)
>
> frame1 = zeros((200, 200))
> frame1[20:40, 20:40] = 255
>
> frame2 = zeros((200, 200))
> frame2[20:40, 30:50] = 255
>
On 10/7/2008 6:23 PM Michael apparently wrote:
> loop through the data and call clf():
The clf call seems quite wrong:
it flashes horribly and I get good
behavior without it (once I add
a call to sleep). What am I
missing?
Alan Isaac
PS The following almost works (i.e., works,
but then exits wi
graef" <[EMAIL PROTECTED]>
> Subject: [Matplotlib-users] Animation and imshow
> To: matplotlib-users@lists.sourceforge.net
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I'm trying to figure out how to do animate
I'm trying to figure out how to do animated graphics in pylab using
imshow, so I made this little 'hello world' equivalent showing a
moving square over two frames.
Problem is I have to call draw twice to refresh the image. Anyone can
explain why this is so (and how to do this more elegantly)? This