Re: django graphics
Hi the other library js for graphis is http://www.flotcharts.org/ On Wed, Jul 10, 2013 at 9:17 AM, pa xapywrote: > why you do this with django? > there so many js libraries > i think that for the web purposes its best solution than generate graphics > with python. > personally, i'm using the http://www.highcharts.com/ - flexible and easy > to start. great docs. > > On Tuesday, July 9, 2013 5:30:45 PM UTC+4, amanjot kaur wrote: >> >> Please suggest me some module/library in django to plot graphs which >> takes input from user. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: django graphics
why you do this with django? there so many js libraries i think that for the web purposes its best solution than generate graphics with python. personally, i'm using the http://www.highcharts.com/ - flexible and easy to start. great docs. On Tuesday, July 9, 2013 5:30:45 PM UTC+4, amanjot kaur wrote: > > Please suggest me some module/library in django to plot graphs which > takes input from user. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: django graphics
Good advice about using forms to capture the plot parameters - be aware that you do not need to save anything to disk (unless you want/need to). There's an example here of creating one and returning it directly via the response: http://wiki.scipy.org/Cookbook/Matplotlib/Django On Tuesday, 9 July 2013 16:58:45 UTC+2, John wrote: > > On 09/07/13 15:40, amanjot kaur wrote: > > > >> >> There are many python plotting libraries. I usually use matplotlib >> because my plots tend to be quite technical. >> > > I also tried to use matplotlib but I think it is filereadable but my > requirements are to add values from front end and then with one click graph > will be ceated on these values. > > > ...so you need to call matplotlib functions from the view function that > handles whatever form you have designed. If you want to plot onto an image > file (rather than embed canvas commands into an html response, for example) > then something like this might work: > > def my_view_function(request): > 1. Create a plot using matplotlib from the form parameters. > 2. Save the plot in /path/to/static/plots/.png (depends where > you are serving static images from). I use uuid for things like this as I > know it will be unique and it doesn't have to be user friendly. > 3. Prepare the html response which includes the graphic plot http://url/to/static/plots/.png">. > 4. Return the html response. > > If I was doing this, I would template the html part and also use the > settings variables for static file location/URL rather than hard-coding the > paths and URLs. I would also run some periodic background clean up function > to get rid of old plots otherwise they will steadily use more disk space. > > Hope that helps. Let the list know if it works! > > John > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: django graphics
On 09/07/13 15:40, amanjot kaur wrote: > > > > There are many python plotting libraries. I usually use matplotlib > because my plots tend to be quite technical. > > > I also tried to use matplotlib but I think it is filereadable but my > requirements are to add values from front end and then with one click > graph will be ceated on these values. ...so you need to call matplotlib functions from the view function that handles whatever form you have designed. If you want to plot onto an image file (rather than embed canvas commands into an html response, for example) then something like this might work: def my_view_function(request): 1. Create a plot using matplotlib from the form parameters. 2. Save the plot in /path/to/static/plots/.png (depends where you are serving static images from). I use uuid for things like this as I know it will be unique and it doesn't have to be user friendly. 3. Prepare the html response which includes the graphic plot http://url/to/static/plots/.png">. 4. Return the html response. If I was doing this, I would template the html part and also use the settings variables for static file location/URL rather than hard-coding the paths and URLs. I would also run some periodic background clean up function to get rid of old plots otherwise they will steadily use more disk space. Hope that helps. Let the list know if it works! John -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: django graphics
> > > There are many python plotting libraries. I usually use matplotlib > because my plots tend to be quite technical. > I also tried to use matplotlib but I think it is filereadable but my requirements are to add values from front end and then with one click graph will be ceated on these values. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: django graphics
On 09/07/13 14:30, amanjot kaur wrote: > Please suggest me some module/library in django to plot graphs which > takes input from user. -- Amanjot, There are many python plotting libraries. I usually use matplotlib because my plots tend to be quite technical. John -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: django graphics
I was going to look at Django Chartit - http://chartit.shutupandship.com/for this, unless anyone has better suggestions? Regards, Nigel Legg 07914 740972 http://www.treavnianlegg.co.uk http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 9 July 2013 08:39, amanjot kaurwrote: > Please suggest me some module/library in django to plot graphs which > takes input from user. > -- > Amanjot Kaur > > Blog: kauramanjot35.wordpress.com > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Django Graphics
Perhaps you can process/display CAD drawings using PostGIS + OpenLayers? On Thu, Dec 2, 2010 at 8:36 AM, Shamail Tayyabwrote: > Have you also tried the python's imaging library? > > You can easily make any type of images in PIL and the display them as > images in browser. > (Should fit your requirement of circles, triangles etc and has lots > more) > > Tx > > -- > Shamail Tayyab > Blog: http://shamail.in/blog > > On Dec 2, 3:08 pm, Jagdeep Singh Malhi > wrote: > > On Dec 2, 1:18 pm, "Cal Leeming [Simplicity Media Ltd]" > > > > wrote: > > > Please define 'handle graphics'. > > > > > Do you mean serving graphics media? Creating graphics on the fly? > > > Resizing? Overlaying? Give us some clues ;) > > > > CAD. > > > > Making circle, triangle etc like in AutoCAD / QCAD, or paint brush > > > > Making sketches / figures. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. > > -- George R. C. Silva Desenvolvimento em GIS http://blog.geoprocessamento.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Django Graphics
Have you also tried the python's imaging library? You can easily make any type of images in PIL and the display them as images in browser. (Should fit your requirement of circles, triangles etc and has lots more) Tx -- Shamail Tayyab Blog: http://shamail.in/blog On Dec 2, 3:08 pm, Jagdeep Singh Malhiwrote: > On Dec 2, 1:18 pm, "Cal Leeming [Simplicity Media Ltd]" > > wrote: > > Please define 'handle graphics'. > > > Do you mean serving graphics media? Creating graphics on the fly? > > Resizing? Overlaying? Give us some clues ;) > > CAD. > > Making circle, triangle etc like in AutoCAD / QCAD, or paint brush > > Making sketches / figures. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Django Graphics
On Thu, Dec 2, 2010 at 10:08 AM, Jagdeep Singh Malhiwrote: > > > On Dec 2, 1:18 pm, "Cal Leeming [Simplicity Media Ltd]" > wrote: >> Please define 'handle graphics'. >> >> Do you mean serving graphics media? Creating graphics on the fly? >> Resizing? Overlaying? Give us some clues ;) > > CAD. > > Making circle, triangle etc like in AutoCAD / QCAD, or paint brush > > Making sketches / figures. > Django is python. Anything you can do in python you can do in django. You can do anything in python. Having said that, if you are expecting some sort of project you can drop in to your django app that allows you to draw CAD diagrams in your browser and persist them to django models, then you are probably out of luck. If you want to write such a thing though, then you could in python/django. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Django Graphics
On Thu, 2010-12-02 at 02:08 -0800, Jagdeep Singh Malhi wrote: > > Do you mean serving graphics media? Creating graphics on the fly? > > Resizing? Overlaying? Give us some clues ;) > > CAD. > > Making circle, triangle etc like in AutoCAD / QCAD, or paint brush > > Making sketches / figures. django is nothing but python, html, css, js etc - do your graphics exactly as you would do it in normal html, python, css, js etc. Either generate them in the backend with python or use some js toolkit to do it on the client side. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Django Graphics
On Dec 2, 1:18 pm, "Cal Leeming [Simplicity Media Ltd]"wrote: > Please define 'handle graphics'. > > Do you mean serving graphics media? Creating graphics on the fly? > Resizing? Overlaying? Give us some clues ;) CAD. Making circle, triangle etc like in AutoCAD / QCAD, or paint brush Making sketches / figures. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Django Graphics
On Thu, 2010-12-02 at 00:14 -0800, Jagdeep Singh Malhi wrote: > Can we handle graphics in Django? yes -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Django Graphics
Ah. http://lmgtfy.com/?q=django+charts+ ;) On 02/12/2010 08:22, Venkatraman S wrote: On Thu, Dec 2, 2010 at 1:44 PM, Jagdeep Singh Malhi> wrote: Can we handle graphics in Django? referring to charts? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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-us...@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.
Re: Django Graphics
On Thu, Dec 2, 2010 at 1:44 PM, Jagdeep Singh Malhiwrote: > Can we handle graphics in Django? > > referring to charts? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Django Graphics
Please define 'handle graphics'. Do you mean serving graphics media? Creating graphics on the fly? Resizing? Overlaying? Give us some clues ;) On 02/12/2010 08:14, Jagdeep Singh Malhi wrote: Can we handle graphics in Django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.