Hello,
You can use a template for your page. For the graph, there are two ways using matplotlib :
- in your GET (or POST) method, generate an image from matplotlib, store it in /static (for example) and provide the url to your template. You'll have to remove the image later or /static will grow up.
- in your template, generate an url containing all required parameters for the graph, and respond by generating the image (with matplotlib) on the fly, so you don't have to store an image on disk.
Hope that helps.
Sébastien.