Fri Jan 9 09:25:16 EST 2009

Python Realtime plotting

My experience in writing a real-time plotting routine using matplotlib has been less than satisfactory. In my first go, unless I created my figure window manually before running the plot it never got created (even though there are draw() commands in the plot loop). Then, when it does work, if I move my figure window on the screen it stops updating (goes white) and I have to restart the application.

So when I found this page describing the combination of matplotlib with wxpython I was very excited. I've tried the real-time plot available there and it works like a champ as best I can tell.

My only beef, is that I do NOT want to have to muddle through wxpython code for every application I write. So when I have the time, my hope is to borrow the technique above and create a plotting container template that will allow me to focus on the matplotlib and data parsing code rather than than the wxpython code. Hmm. How to best do this…


Posted by vschmidt | Permanent link | File under: matlab, python