0

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?

Community
  • 1
  • 1
Navid
  • 642
  • 6
  • 14

1 Answers1

0

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.

Navid
  • 642
  • 6
  • 14