By monitoring memory and time with the task manager it looks like there is no
big difference. I'm aware that it should be monitored in a more rigourous
way but I don't think it is really relevant since the main problem was
solved using the Agg backend instead of the WXAgg that seems to have a
memory leakage (see branch discussion with David).  


Fabrice Silva-2 wrote:
> 
> Le vendredi 17 juin 2011 à 03:49 -0700, Alain Francés a écrit :
>> > You can in fact remove the fig argument of the plot_density function as
>> > it is not used. The clf command removes the children of the figure so
>> > that it has to delete the axes and its children (amongst which is the
>> > AxesImage) and create new ones when you invoke imshow again.
>> 
>> I simply removed the clf command!
>> It works now with this code (I just implemented fig.canvas.draw() as you
>> indicated)
> 
> So? what about timings and memory consumption?
> -- 
> Fabrice Silva
> 
> 
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Memory-increasing-while-plotting-in-loop-tp31850163p31870257.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to