Re: [web2py] Re: real time graph

2013-07-25 Thread António Ramos
Did you get the CCNA?
Congrats!
Are u Portuguese?


2013/7/25 Vera Moreira 

> thank you all for your answers, sorry about the "missing in action" I had
> to take my CCNA certification so I Left this behind ...
> For what I need I think I will try the web-sockets, them we will see...
>
> thank you,
> vera
>
>>  --
>
> ---
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: real time graph

2013-07-25 Thread Vera Moreira
thank you all for your answers, sorry about the "missing in action" I had 
to take my CCNA certification so I Left this behind ... 
For what I need I think I will try the web-sockets, them we will see...

thank you,
vera   

>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: real time graph

2013-07-22 Thread Massimo Di Pierro
It can be done with web2py and gluon/contrib/websocket_messaging.py easily. 
The problem is that how depends on details.

On Monday, 22 July 2013 17:23:11 UTC-5, samuel bonilla wrote:
>
> the best option in python is 
>
> http://mokshaproject.net/
>
> El jueves, 18 de julio de 2013 17:58:54 UTC-5, Vera Moreira escribió:
>>
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: real time graph

2013-07-22 Thread samuel bonilla
the best option in python is 

http://mokshaproject.net/

El jueves, 18 de julio de 2013 17:58:54 UTC-5, Vera Moreira escribió:
>
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: real time graph

2013-07-22 Thread Massimo Di Pierro
Nice. In the example there is this code:

data.push(random());

In the example the problem is updated using random() points. I think Vera's 
problem is that the data must be pushed from the server to the client. She 
needs a websocket.

On Monday, 22 July 2013 04:19:26 UTC-5, Zbigniew Pomianowski wrote:
>
> I use d3.js - seems to at least awesome.
>
> Here are some examples with real time paths:
> http://bost.ocks.org/mike/path/
>
>
> W dniu piątek, 19 lipca 2013 00:58:54 UTC+2 użytkownik Vera Moreira 
> napisał:
>>
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: real time graph

2013-07-22 Thread Zbigniew Pomianowski
I use d3.js - seems to at least awesome.

Here are some examples with real time paths:
http://bost.ocks.org/mike/path/


W dniu piątek, 19 lipca 2013 00:58:54 UTC+2 użytkownik Vera Moreira napisał:
>
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: real time graph

2013-07-19 Thread Massimo Di Pierro
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: real time graph

2013-07-19 Thread António Ramos
My favorite

d3js



2013/7/19 Paolo Valleri 

> Have a look at http://www.flotcharts.org/
>
> Paolo
>
>
> On Friday, July 19, 2013 12:58:54 AM UTC+2, 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: real time graph

2013-07-19 Thread Paolo Valleri
Have a look at http://www.flotcharts.org/

Paolo

On Friday, July 19, 2013 12:58:54 AM UTC+2, 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.