On Thu, Oct 13, 2011 at 12:42 AM, Viktor Forsman
<viktor.fors...@gmail.com> wrote:
> Hi,
>
> I have problems with a memory leak in a webapplication involving matplotlib.
> Basically, I have a function which usies the OO way of generating the graph,
> printing it to a StringIO object and returning that. I've posted a question
> with the details on stackoverflow
> (http://stackoverflow.com/questions/7740832/need-help-identifying-a-memory-leak-involving-matplotlib-and-flask).
> Any ideas are highly appreciated.

What version of matplotlib and numpy are you using?  Does it help to do:

    import gc
    gc.collect()

after a call to plot total or plot month?

Also, you appear to be adding data to "plot_values" and storing this
on every call.  Are you sure the leak is in mpl and not here?
JDH

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to