x = linspace (0,1, 1e3); plot (x,x, '.') tic; print foo.png; toc