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.
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.