Thursday, November 08, 2018

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.

1 comment:

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.