<div dir="ltr">Did the rate of memory leak change?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 19, 2017 at 10:26 AM, GARCIA PIERRE SIMON p0904379 <span dir="ltr"><<a href="mailto:pierre.garcia@etu.univ-lyon1.fr" target="_blank">pierre.garcia@etu.univ-lyon1.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Thank you for your answer but I updated MPL to 2.1.0 and the memory leak is still there. Also, I skipped entirely pyplot and the result is strictly the same. </p>
<p><br>
</p>
<p>Pierre <br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_1453678466837279719divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De :</b> Benjamin Root <<a href="mailto:ben.v.root@gmail.com" target="_blank">ben.v.root@gmail.com</a>><br>
<b>Envoyé :</b> lundi 7 août 2017 19:27<br>
<b>À :</b> Thomas Caswell<br>
<b>Cc :</b> GARCIA PIERRE SIMON p0904379; <a href="mailto:matplotlib-users@python.org" target="_blank">matplotlib-users@python.org</a><br>
<b>Objet :</b> Re: [Matplotlib-users] Problem of memory leak using FigureCanvasTkAgg</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div>The stackoverflow posting notes that mpl v1.1.1 was used, which is 5 years old. I am pretty sure we have made a lot of memory leak fixes since then. I noted as such on SO.<br>
<br>
</div>
Ben Root<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Aug 5, 2017 at 7:48 PM, Thomas Caswell <span dir="ltr">
<<a href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">It is likely there things are not being garbage collected due to either a missed reference surviving or the circular references between the various objects is delaying gc from collecting them (I do not recall the details exactly off the top of
 my head, but running gc manually with more generations may help).
<div><br>
</div>
<div>However, if you are embedding in a GUI you are probably better off just doing the embedding directly (and skipping `pyplot` entirely, see <a href="https://matplotlib.org/examples/user_interfaces/embedding_in_tk.html" target="_blank">https://matplotlib.org/exa<wbr>mples/user_interfaces/embeddin<wbr>g_in_tk.html</a> ). 
 Re-using the Figures / Axes / Artists to update the data (rather than starting from scratch every time) may also prevent the memory leaks _and_ give you a performance boost.<br>
<div><br>
</div>
<div>Please subscribe to the list so that you can post without moderation.</div>
</div>
<div><br>
</div>
<div>Tom</div>
</div>
<br>
<div class="gmail_quote">
<div>
<div class="m_1453678466837279719h5">
<div dir="ltr">On Sat, Aug 5, 2017 at 12:36 PM GARCIA PIERRE SIMON p0904379 <<a href="mailto:pierre.garcia@etu.univ-lyon1.fr" target="_blank">pierre.garcia@etu.univ-lyon1.<wbr>fr</a>> wrote:<br>
</div>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="m_1453678466837279719h5">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="margin-top:0;margin-bottom:0">Hello,</div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0">I'm PhD student in Bioinformatic and I'm working on a project using matplotlib and Tkinter but I've got a big problem of memory leak using these modules. I'll be very grateful if you could help me to solve this problem.
 Here is the link explaining what happends, with a reduced script:<br>
</div>
<div style="margin-top:0;margin-bottom:0"><a href="http://stackoverflow.com/questions/43097378/matplotlib-vs-tkinter-memory-leak-using-figurecanvastkagg" target="_blank">http://stackoverflow.com/quest<wbr>ions/43097378/matplotlib-vs-<wbr>tkinter-memory-leak-using-figu<wbr>recanvastkagg</a></div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0">Thank you in advance,</div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0">Sincerly,</div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0"> </div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div id="m_1453678466837279719m_8752987234137932296m_7976358393198986301Signature">
<div style="margin:0"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2">Pierre Garcia, PhD Student</font><font size="2"><br>
---------</font><font size="2"><br>
Bases Moléculaires et Structurales des Systèmes infectieux-UMR5086</font><font size="2"><br>
Institut de Biologie et Chimie des Protéines</font><font size="2"><br>
<a href="https://maps.google.com/?q=7+passage+du+Vercors&entry=gmail&source=g">7 passage du Vercors</a> </font><br>
<font size="2">69 367 Lyon cedex 07</font><font size="2"><br>
---------</font><font size="2"><br>
Laboratoire de Biométrie et Biologie Evolutive-UMR5558</font><font size="2"><br>
UCBL Lyon 1 -Bât. Grégory Mendel</font><font size="2"><br>
<a href="https://maps.google.com/?q=43+bd+du+11+novembre+1918&entry=gmail&source=g">43 bd du 11 novembre 1918</a></font><font size="2"><br>
69622 VILLEURBANNE cedex</font></font></div>
</div>
<p><br>
</p>
</div>
</div>
</div>
______________________________<wbr>_________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/matplotlib-users</a><br>
</blockquote>
</div>
<br>
______________________________<wbr>_________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/matplotlib-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>