[scilab-Users] Dealing with plots and memory issues

Jonathan Blanchard BlanchardJ at ieee.org
Wed Jun 15 17:10:44 CEST 2011


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



More information about the users mailing list