Drawing data. With #flask, and #matplotlib.

Here's a pretty simple example of using the Flask microweb framework, and matplotlib together.
Matplotlib is a graphing library used by a lot of people in python.

But how to serve your graphs up in a web browser as a png or an SVG image?
Code is in this gist: flask matplotlib.

Serving svg and png images with Flask and matplotlib.


flask and matplotlib for drawing svg and png graphs with python
here is what it looks like

Code is in this gist: flask matplotlib.

Comments

Unknown said…
Cool, thanks for sharing! I recently came accross Dash, you might already know it, but it also creates plots in a Flask framework.
Great article ...Thanks for your great information, the contents are quiet interesting. I will be waiting for your next post.
Python Flask Training
Flask Framework
Python Flask Online Training
anita said…
Such A nice post... thanks For Sharing !!Great information for new guy like Hanuman Chalisa Lyrics
archna said…
Such A nice post... thanks For Sharing !!Great information for new guy like showbox for android

Popular posts from this blog

post modern C tooling - draft 6

Is PostgreSQL good enough?

Pixel perfect collision detection in pygame with masks.