backend fltk t=0:0.01:2*pi; x=sin(t); plot(t, x); name = 'axis_1_1.png'; sleep (2); % removing this avoids the crash print (name, '-dpng');