Linking to multiple dynamic images from same web page

2015-01-18 Thread Derek
I have a situation which is puzzling. I have a web page that, when generated embeds links that look like: http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF1Wu3OfN9rmUKTDO%2BT%3DJan%3DF%3DLKODqQObds-tvME%3DUhL

Re: Linking to multiple dynamic images from same web page

2015-01-18 Thread Mitesh Patel
Hi Derek, I face same issue few months ago, what I did is I destroyed plot object completely everytime the view is called and regenerated new plot everytime. You can try that. There is an issue with matplotlib memory, which basically usage same plot. Another solution could be try different cStrin

Re: Linking to multiple dynamic images from same web page

2015-01-19 Thread Derek
Thanks Mitesh I thought it might be along those lines. I have tried calling plt.close() just before I return from the plot creation function, but still get the same error. Do you perhaps have a simple code example I can try and follow? (I am already using the io module for the image storage.