Real time graphs

Hi,

I need to make a small application that will do real time graphs. Basically, it will receive data, and then:
* store that data in a database
* display it on a graph
The graph will be Time vs Input so that a user can watch the graph grow. Updates may be needed as quickly as 5 times per second.

Can matplotlib do this, or should I be looking at using something else? If it can, how? I've taken a browse through the website but can't find relevant information.

Mark

Hi,

I need to make a small application that will do real time graphs.
Basically, it will receive data, and then:
* store that data in a database
* display it on a graph
The graph will be Time vs Input so that a user can watch the graph
grow. Updates may be needed as quickly as 5 times per second.

Can matplotlib do this, or should I be looking at using something else?
If it can, how? I've taken a browse through the website but can't find
relevant information.

Have a look at anim.py in the examples directory of source distribution.
This should give you an idea of how to attack the problem. Feel free to
get back to us if you have any problems.

Cheers,

Tim

Mark

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

`-

···

On Mon, 30 May 2005, Mark Saward <msaward@...636...> wrote...

Hi,

It looks good thanks, but I'm having a couple of problems (being a python and matplotlib newbie).

Specifically:
1. When I don't have the sleep bit in the attached file, sometimes/often the graph will stop displaying onscreen halfway through until it is finished. I don't want it to disappear - I want to be able to reliably watch the graph as it forms
2. It flashes between the specified axis and just fitting the graph to the boundaries defined by the actual data. I want it to stay using the specified axis all the time

Any help appreciated. Sorry if I shouldn't be attaching files to this list.

Tim Leslie wrote:

animtest.py (1.11 KB)

···

On Mon, 30 May 2005, Mark Saward <msaward@...636...> wrote...

Hi,

I need to make a small application that will do real time graphs. Basically, it will receive data, and then:
* store that data in a database
* display it on a graph
The graph will be Time vs Input so that a user can watch the graph grow. Updates may be needed as quickly as 5 times per second.

Can matplotlib do this, or should I be looking at using something else? If it can, how? I've taken a browse through the website but can't find relevant information.
   
Have a look at anim.py in the examples directory of source distribution.
This should give you an idea of how to attack the problem. Feel free to
get back to us if you have any problems.

Cheers,

Tim

Mark

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

`-

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users