How to Create Charts in Matplotlib with flask - Example 2