Plotting in loop problem, not refreshing

Hi everyone ,

I know this has been posted several times now, But I could not understand
qietly why my simple code does not work.
here is the code:
http://old.nabble.com/file/p31775254/LinearConvection.py LinearConvection.py

The problem in detail: In the solver loop ( the outer loop) , The plot
should be updated after every time step, but it stays the same.

I'm a complete noob in python, so excuse my simple communicating language.

thanks alot,
Armin

···

--
View this message in context: http://old.nabble.com/Plotting-in-loop-problem%2C-not-refreshing-tp31775254p31775254.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Your code should work (and does on my system)…

What backend, version of matplotlib, OS, etc are you running?

···

On Sat, Jun 4, 2011 at 4:54 PM, Armin G <armin65@…287…> wrote:

Hi everyone ,

I know this has been posted several times now, But I could not understand

qietly why my simple code does not work.

here is the code:

http://old.nabble.com/file/p31775254/LinearConvection.py LinearConvection.py

The problem in detail: In the solver loop ( the outer loop) , The plot

should be updated after every time step, but it stays the same.

I’m a complete noob in python, so excuse my simple communicating language.

thanks alot,

Armin

View this message in context: http://old.nabble.com/Plotting-in-loop-problem%2C-not-refreshing-tp31775254p31775254.html

Sent from the matplotlib - users mailing list archive at Nabble.com.


Simplify data backup and recovery for your virtual environment with vRanger.

Installation’s a snap, and flexible recovery options mean your data is safe,

secure and there when you need it. Discover what all the cheering’s about.

Get your free trial download today.

http://p.sf.net/sfu/quest-dev2dev2


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am using MPL 1.0.1 with Python 2.6 over Windows XP and it works.

I would like to add an advice: range(n) creates a list of size n, and
stores it in memory. But in your code you are only using one number at
a time. Python has a better instruction: xrange. It works exactly like
range, but doesn't create the list; it will return sequentially every
number without the need of storing all at once.

In this simple program it makes no difference, but when you go bigger, it will.

David.

···

On Sun, Jun 5, 2011 at 3:28 AM, Joe Kington <jkington@...150...> wrote:

Your code should work (and does on my system)...
What backend, version of matplotlib, OS, etc are you running?

On Sat, Jun 4, 2011 at 4:54 PM, Armin G <armin65@...287...> wrote:

Hi everyone ,

I know this has been posted several times now, But I could not understand
qietly why my simple code does not work.
here is the code:
http://old.nabble.com/file/p31775254/LinearConvection.py
LinearConvection.py

The problem in detail: In the solver loop ( the outer loop) , The plot
should be updated after every time step, but it stays the same.

I'm a complete noob in python, so excuse my simple communicating language.

thanks alot,
Armin
--
View this message in context:
http://old.nabble.com/Plotting-in-loop-problem%2C-not-refreshing-tp31775254p31775254.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with
vRanger.
Installation's a snap, and flexible recovery options mean your data is
safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options