Return images with matplotlib?
Istvan Albert
istvan.albert at gmail.com
Sun Feb 4 21:13:50 EST 2007
On Feb 4, 8:18 pm, Jan Danielsson <jan.m.daniels... at gmail.com> wrote:
> def barchart(req, params):
> some_format = matplotlib.generate_fancy_graph(params)
> png_buf = make_png_buffer(some_format)
> return png_buf
>
> Is this possible? If so -- how?
savefig does that. You can save to a file name or a buffer.
http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig
i.
More information about the Python-list
mailing list