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 any other
serialized format, and plot it using a javascript plotting library like
flot or flotr2 <http://humblesoftware.com/flotr2/>. This option would make
it more maintainable, look nicer and interactive.
Hope I am clear to you.

Thanks and Regards,
Anoop Thomas Mathew

atm
___
Life is short, Live it hard.




On 12 June 2012 11:15, Alec Taylor <alec.tayl...@gmail.com> wrote:

> 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 <toor.satvi...@gmail.com>
> 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.0)
> >
> > xlabel('time (s)')
> > ylabel('voltage (mV)')
> > title('About as simple as it gets, folks')
> > grid(True)
> > show()
> >
> >
> > its working well but the output is being display in different
> > window..But i need to display this curve in browser window. Please
> > tell me what changes i have to make in this code
> >
> > --
> > Satvir Kaur
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to