Matplotlib: interactive plot on a web server

前端 未结 5 1665
无人共我
无人共我 2020-12-08 07:59

I\'m currently using Open Flash Chart 2 on my django website, but I find it insufficiently customizable. (It\'s great when you want the usual barcharts, piecharts, but what

5条回答
  •  抹茶落季
    2020-12-08 08:40

    Resurrecting an old question with the current state of affairs. As of Fall 2013, there's now an example of embedding matplotlib's WebAgg backend in a Tornado-based webserver: https://github.com/matplotlib/matplotlib/blob/master/examples/user_interfaces/embedding_webagg.py

    This makes use of websockets to send the figure updates to the browser, which allows for really nice interactive plots that get rendered client-side. This means that no images are being generated on the server!

提交回复
热议问题