I am using matplotlib library in django app to create diagrams.
I am trying to render canvas object of matplotlib library to django templates with the aid of thread.
Is there some way to render only canvas object in django templates?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is another way to do this. I saved figure using ‘figure.savefig’ function of matplotlib library in local media directory and loaded the figure using django templates. Views generating figure pass the figure location and name to django templates.