Re: Graphs in django

2012-06-11 Thread kenneth gonsalves
On Tue, 2012-06-12 at 11:24 +0530, Satvir Toor wrote: > On Tue, Jun 12, 2012 at 11:15 AM, Alec Taylor > wrote: > > Put it in the template or whatnot > > > > Might be an easier job for a javascript graph library, or even > processing-js > okie.But i am not clear with javascript graph libraray tak

Re: Graphs in django

2012-06-11 Thread Anoop Thomas Mathew
Hi, What you are generating right now, is in a GTK window (desktop). This is not directly show-able in a browser AFIK. What you can do is to 1. Generate a jpeg/png from that, and serve it as a static file to the browser, just like an image 2. You can send the data across to the browser as json or

Re: Graphs in django

2012-06-11 Thread Satvir Toor
On Tue, Jun 12, 2012 at 11:15 AM, Alec Taylor wrote: > Put it in the template or whatnot > > Might be an easier job for a javascript graph library, or even processing-js okie.But i am not clear with javascript graph libraray -- Satvir Kaur satveerkaur.blogspot.in -- You received this message b

Re: Graphs in django

2012-06-11 Thread Alec Taylor
Put it in the template or whatnot Might be an easier job for a javascript graph library, or even processing-js On Tue, Jun 12, 2012 at 3:40 PM, Satvir Toor wrote: > here is code to display sin curve > > from pylab import * > > t = arange(0.0, 2.0, 0.01) > s = sin(2*pi*t) > plot(t, s, linewidth=1