I’ve recently created a web application, using Django, to dynamically create maps from weather data. When I tried using FigCanvasAgg and figure.Figure, the image that was responded by the web server (using canvas.print_png and django.http.HttpResponse) did not show the map, just the scatter points. When I just saved the figure (that was created using a matplotlib.pyplot.figure() instance) in folder that is statically available on the web server, the image is perfect. There is an advantage to using the latter method as the saved images can be cached, but I’m curious as to why the FigCanvasAgg method doesn’t work.
Is this a known issue? If so, are there any workarounds?
Any help on this issue would be greatly appreciated.