From: Jerome Wijesundra on
Hi,

I am running a large amount of simulations that involve plotting graphs and saving them to disk.

Using figure() and plot() followed by saveas()

My question is, is that it seems a lot of time is being spent in drawing the graph on screen, I only need it to be saved to disk. Is there anyway to save the graph image but not waste time displaying hundreds of thousands of graphs.

Thanks,

Jerome
From: Jerome Wijesundra on
I did some searching and managed to find this:

f=figure('visible','off');
and call that before plotting
and then saveas(f,'fasf','fig');

funny thing is, it's running slower than when it drew the graph, any ideas?

Cheers

"Jerome Wijesundra" <jwijesundra(a)gmail.com> wrote in message <i3g9b4$6i8$1(a)fred.mathworks.com>...
> Hi,
>
> I am running a large amount of simulations that involve plotting graphs and saving them to disk.
>
> Using figure() and plot() followed by saveas()
>
> My question is, is that it seems a lot of time is being spent in drawing the graph on screen, I only need it to be saved to disk. Is there anyway to save the graph image but not waste time displaying hundreds of thousands of graphs.
>
> Thanks,
>
> Jerome