>>>>> "Jon" == Jon Roadley-Battin <[EMAIL PROTECTED]> writes:
    Jon> is there any thread_init for matplotlib. short of having a
    Jon> timer within the GUI class that checks if any new data is
    Jon> present I cant see a way around this. It has to be done this

There isn't any such method.  Would it work for you to update your
line data / plot data and run canvas.draw_idle in a gtk timer, eg
every second?  Since you are only polling your RS232 every second or
so, it seems like you could update your graph in a timer on roughly
the same time scale w/o too much pain.

I don't know mcuh about threading, but trying to make threads play
nice with all the GUIs mpl supports seems daunting, and I prefer to
offload that to external apps -- eg ipython in pylab mode.  But if
there is something we can add that will make your use case work better
if the timer route doesn't work, feel free to suggest something...

JDH

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to