In that case, create a model in models.py, that represents your plot data..

add some data ...
and in views filter some data from that model ..
pass them to matplotlib
render to image
and either send back a image, or save the image and render html with path to that image..

If you don't know how to do any of these things, I'd suggest you to read django tutorial
and then ask us a more specific question.


Enjoy!
Lukas

On 08/06/2013 07:30 AM, amanjot kaur wrote:
I am plotting a graph in django using matplotlib. I am entering all
the values manually but I want to fetch the values from database in
views.py.


--
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.


Reply via email to