how to update plots fast

Hi,

I wish to have several (about 3) plots which are updated about once per
second, as part of some application that's monitoring an instrument.

I set pyplot to interactive mode. I create as many figures as I need, and
then I simply plot to them whenever I have new data coming in (each time I
plot a new x and y vectors, I don't know if it's possible just to append
data points to existing plots).

I work on windows xp with the default matplotlib settings.

This procedure is very slow. The plots take ages to update.

Is there a faster way to do that?

Thank you,
Raz

···

--
View this message in context: http://www.nabble.com/how-to-update-plots-fast-tp25252745p25252745.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Have you read these?
http://www.scipy.org/Cookbook/Matplotlib/Animations
http://matplotlib.sourceforge.net/examples/animation/index.html?highlight=animation

What I normally do is plot everything (forget about interactive mode, its just too slow) and get handles to curves, then update the curves values. With this you don’t need to redraw everything each time you add a new element.

I remember reading a page about animation and backends, but I can’t find it anymore, maybe the previous links can help you.

Good luck

2009/9/2 RazAlon <raz.alon@…2761…>

···

Hi,

I wish to have several (about 3) plots which are updated about once per

second, as part of some application that’s monitoring an instrument.

I set pyplot to interactive mode. I create as many figures as I need, and

then I simply plot to them whenever I have new data coming in (each time I

plot a new x and y vectors, I don’t know if it’s possible just to append

data points to existing plots).

I work on windows xp with the default matplotlib settings.

This procedure is very slow. The plots take ages to update.

Is there a faster way to do that?

Thank you,

Raz

View this message in context: http://www.nabble.com/how-to-update-plots-fast-tp25252745p25252745.html

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


Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day

trial. Simplify your report design, integration and deployment - and focus on

what you do best, core application coding. Discover what’s new with

Crystal Reports now. http://p.sf.net/sfu/bobj-july


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

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