saveas command requires pause

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

saveas command requires pause

Fritz Sonnichsen
I am using the saveas(H,filename) command to save jpgs of plots. I note
that if I run many consecutive plots, several are missing (e.g. do not
get saved).  The workaround for me was to put a pause command between
each plot/save sequence:

H3=plot(VC)
   title("Drift of Cell: Current","fontsize",14)
   pause(4)
   saveas (H3, "C:/Users/fs/Desktop/gus/plot3.jpg");

I am using the qt graphics package. Any comments here? Perhaps Octave is
multhreading this and not waiting for the prior plot to finish.

thanks
fritz