matplotlib pyplot stop working

37 views
Skip to first unread message

dk

unread,
Feb 19, 2015, 4:26:16 PM2/19/15
to django...@googlegroups.com
I am using matplotlib.pyplot to generate a plot image, put it in a temp folder,
and then use that to populate a webpage.

the problem is:
1) always display the same image,  I all ready deleted the image before creating the new one,
I also set pyplot .close()  to close all my figures.

2) some times everything freeze and stop working.

my suspicions is since django is constantly running keeps the figure in the memory some how.   have any one got issues like this?
thanks.

Collin Anderson

unread,
Feb 20, 2015, 12:22:32 PM2/20/15
to django...@googlegroups.com
Hi,


Could the image be cached by the browser, does shift+F5 refresh it? The easiest way to fix it would be to use a different url/filename every time you generate an new image.

Collin

dk

unread,
Feb 20, 2015, 6:15:17 PM2/20/15
to django...@googlegroups.com
yep  I get the same issue the guy is commenting, were it happen when I run it more than once,  I will try to do the multiprocess that he mention and I will see what happen.
Reply all
Reply to author
Forward
0 new messages