MCPcopy Create free account
hub / github.com/GonVas/tickerrain / plot_png

Function plot_png

flask_example.py:158–162  ·  view source on GitHub ↗
(numb)

Source from the content-addressed store, hash-verified

156
157@app.route('/plot<numb>.png')
158def plot_png(numb):
159 fig = create_figure(day=numb)
160 output = io.BytesIO()
161 FigureCanvas(fig).print_png(output)
162 return Response(output.getvalue(), mimetype='image/png')
163
164
165@app.route('/plot_time.png')

Callers

nothing calls this directly

Calls 1

create_figureFunction · 0.85

Tested by

no test coverage detected