Hello Vera, I agree with some of the answers below: you need javascript for real time. But there are many subtleties. In particular what is the data source? and when does it change? How often does it change?
For example if you want to the graph change be triggered by a rare user event you can make an ajax request to update your graph (this could be made with matplotlib or JS). If instead the graph change is triggered by a frequent user event, for example the movement of the mouse, you need to use JS. If the graph changes because of events generated server side (for example you are displaying a graph of CPU usage in your server) then you need a way for the browser to refresh its content periodically. One way is to make ajax requests, grab the new data, redo the plot clientside in JS. Another way is to use a websocket. If you give us more details we can try make a working example. massimo On Thursday, 18 July 2013 17:58:54 UTC-5, Vera Moreira wrote: > > hi everyone, > I need some help, does anyone have examples on how to do a "real time > graph". What I need is a graph to constantly show random numbers, I´m using > matplotlib > > I already have this info: > from Antonis Tzorvas > an idea for a "real-time approach" graph you have to go with gifs > generated by the several .draw()s and save *.gif in static/images folder > but i've just found this one: > http://jakevdp.github.io/blog/2012/08/18/matplotlib-animation-tutorial/ > > from Ovidio Marinho > A good option would also google maps. See this done with google maps and > web2py. http://mosaico.no-ip.org/mosaico/regionalizacao/regmapa . > For graphs with movements that would be better > http://mosaico.no-ip.org/mosaico/mortalidadeinfantil/neonatalmun.html?municipio=Agua+Branca&botao=muni&ind=neonatal > graphs > are interactive and very good http://www.highcharts.com/ > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

