title: Flask matplotlib graphics in template
body: <p>I have a pretty beginner-question. Is it possible to display dynamically processed matplotlib images (as shown in <a href="https://gist.github.com/wilsaj/862153" rel="nofollow noreferrer">https://gist.github.com/wilsaj/862153</a> or <a href="https://gist.github.com/rduplain/1641344" rel="nofollow noreferrer">https://gist.github.com/rduplain/1641344</a>) directly via render_template(...) or do I have to use app.route('.../')? The aim is to show a customizable (scientific) plot inside a website.</p>
  
  <p>Is there any clean solution if I want to pass an array (or more than one variable) to the plot function?</p>