I am using matplotlib in a django application and would like to render a
graph and return it directly.
Currently I have
working. But since the images I will be generating are only EVER needed
once, I would like to simply return the image directly through django
without needing to save it, then return an URI.
so instead of doing
return HttpResponse("<html><body><img src='some/location.png'
I could do
return HttpResponse(plt.image_render('image/png'), mimetype="image/png")
and not have to worry about deleting the image later (there are LOT that
Any help would be greatly appreciated.