Hello,
I would like to plot some data while the interpreter continues calculating...
if I just write
plot(x,y)
show()
Then the code stops until I close the window... how should I do?
Thanks in advance
Chiara
···
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Hi,
Then the code stops until I close the window... how should I do?
This is normal behavior as, I guess, your program is single-threaded.
What you want is some concurrency during the execution (computing and plotting).
You should look at multi-threading programming in Python. You could have a look here: DEVShed for further details on thread in Python.
Benoit
···
Thanks in advance
Chiara
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
--
Dr. Benoit Donnet
Université Catholique de Louvain (UCL)
Faculté des Sciences Appliquées - Département d'Ingénierie Informatique (INGI)
Place Sainte Barbe, 2
1348 Louvain-la-Neuve
Belgium
Phone: +32 10 47 87 18
Home page: http://www.info.ucl.ac.be/~donnet
Hi Chiara,
Try setting
interactive : True
in your matplotlibrc file
See:
http://matplotlib.sourceforge.net/matplotlibrc
http://matplotlib.sourceforge.net/interactive.html
HTH,
Edin
···
On 2/16/07, Chiara Caronna <chiaracaronna@...32...> wrote:
Hello,
I would like to plot some data while the interpreter continues
calculating...
if I just write
plot(x,y)
show()
Then the code stops until I close the window... how should I do?
Thanks in advance
Chiara