1👍
✅
Matplotlib is a server side library so you cannot do anything on the client side like that.
The closest you can come is to either use mpld3 (mpld3 works by converting a matplotlib graph into the html/js that a d3 js graph would need to render) or a different client side library that plots points.
1👍
The easiest way of serving pure matplotlib to the web is using a jupyter notebook.
Other than that, you may want to look at specific libraries like Plotly or bokeh.
- [Answered ]-Django downloading a csv file with variable in name
- [Answered ]-Deployment of django using nginx
- [Answered ]-Python Django cache vs store in model field? Which is more efficient?
- [Answered ]-Django Admin: variables/constants inside Django Admin that can be changed
- [Answered ]-Django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: thumbnail
Source:stackexchange.com