[scilab-Users] Dealing with plots and memory issues

Eduardo Torrecillas eduardo.torrecillas at gmail.com
Wed Jun 15 18:34:19 CEST 2011


Thanks Jonathan!

It works fine and its much faster!

Regards,

On Wed, Jun 15, 2011 at 12:10 PM, Jonathan Blanchard <BlanchardJ at ieee.org>wrote:

> On Wed, Jun 15, 2011 at 11:45 AM, Eduardo Torrecillas
> <eduardo.torrecillas at gmail.com> wrote:
> > Hi all,
> >
> > I have a script basically using functions below, inside a loop:
> >
> > fig=figure(countfig)
> > f=scf(fig)
> > plot2d(...)
> > x2eps(...)
> > close(fig)
> >
> > Unfortunately, when the number of images is huge, I always get memory
> errors
> > (saying memory is empty) and the script is aborted.
> > Is there any way to clear memory after each plotting/saving to avoid
> this?
> >
> > Regards,
> > --
> > Eduardo Torrecillas
> > AER-09
> >
>
> You may want to try clearing the current figure using clf() instead of
> creating a new one each time. I found that method better suited when
> generating a lot of figures and also somewhat faster.
>
> Jonathan Blanchard
>



-- 
Eduardo Torrecillas
AER-09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110615/47862187/attachment.htm>


More information about the users mailing list