Hi Jon,

I can reproduce you observation using the following program
> -------------------------------------------------
from pylab import plot, arange, ion
##ion()
plot(arange(10), arange(10))
> --------------------------------------------------

uncommenting the second line resolves the problem at least for me. That is an 
additional switch to interactive mode is needed, but I can't explain why.

My matplotlib is:
In [1]:matplotlib.__version__
Out[1]: '0.98.6svn'

Can you reproduce this behaviour and can anybody else explain that?

regards Matthias


On Saturday 28 February 2009 18:22:36 Jonathan Taylor wrote:
> Hi,
>
> I have a simple script that plots x,y vals in an animation called anim.py
>
> data = read('data.dat')
>
> for i in range(10):
>     plot(data[:,0], data[:,1])
>
> I am using ipython -pylab but when I do run anim.py it doesn't show
> anything until I say show().  On the other hand, if I do one of these
> plotting commands from the ipython terminal it shows up right away.
> It seems that everything works fine once one thing has been plotted
> from the ipython command line.  Is there any way to fix this so that
> it plots right away as expected?
>
> Thanks,
> Jon.
>
> ---------------------------------------------------------------------------
>--- Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing
> the Enterprise -Strategies to boost innovation and cut costs with open
> source participation -Receive a $600 discount off the registration fee with
> the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to