Cannot maximize figure while script is running

I would suggest not using the pylab interface. Try building off of one of the
embedding_in examples in

http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip
.

Thank you for the answer, Darren. However, could you explain a bit more in detail why is not a good idea to use the pylab interface? It is very simple and easy to use (I am a Matlab user as well) so it felt very natural to try to use it.

Angel

P.S.- Thanks for the os.path.getmtime tip.

Also, after looking at the embedded_tk example, it seems that you end the script with a tk.mainloop() which kind of defeats my whole purpose, as I need the script to keep checking for changes on a file.
What it seems that I need is some why to trigger the gui loop, but also to have an “event” be trigged every few seconds, and that event would be responsible for checking if there is new data, reading the file, and updating the plot if necessary.
Is there some way to accomplish something like this?
Thanks,
Angel

···

---------- Forwarded message ----------
From: Angel Ezquerra Moreu <angel.ezquerra@…287…>
Date: Aug 12, 2007 11:01 PM
Subject: Re: [Matplotlib-users] Cannot maximize figure while script is running
To:
matplotlib-users@lists.sourceforge.net

I would suggest not using the pylab interface. Try building off of one of the
embedding_in examples in
[

http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip](http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip).

Thank you for the answer, Darren. However, could you explain a bit more in detail why is not a good idea to use the pylab interface? It is very simple and easy to use (I am a Matlab user as well) so it felt very natural to try to use it.

Angel

P.S.- Thanks for the os.path.getmtime tip.

I guess there is no reason you can't do it with pylab after all, see
animation_blit_qt4, for example. I think you would be better off using a gui
timer/event handler like in the blit example.

Darren

···

On Sunday 12 August 2007 05:01:57 pm Angel Ezquerra Moreu wrote:

> I would suggest not using the pylab interface. Try building off of one of

the

> embedding_in examples in
> http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip.

Thank you for the answer, Darren. However, could you explain a bit more in
detail why is not a good idea to use the pylab interface? It is very simple
and easy to use (I am a Matlab user as well) so it felt very natural to try
to use it.