x = [0 1]; y = [0 1]; plot(x,y); print -dpng testplot.png