2 with_stdout ("data.txt", for x:0 thru 10 do print (x, x^2, x^3))$
3 data: read_matrix ("data.txt")$
4 plot2d ([discrete,transpose(data)[2],transpose(data)[3]], [style,points],
5 [point_type,diamond], [color,red], [pdf_file,"./plotting15.pdf"]);
6 plot2d ([discrete,transpose(data)[2],transpose(data)[3]], [style,points],
7 [point_type,diamond], [color,red], [png_file,"./plotting15.png"]);