RosettaCodeData/Task/Plot-coordinate-pairs/Zkl/plot-coordinate-pairs.zkl

24 lines
407 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
#<<<
cmd:=0'|
#set term wxt # X11
unset key # Only one data set, so the key is uninformative
plot '-' # '-' can be replaced with a filename, to read data from that file.
0 2.7
1 2.8
2 31.4
3 38.1
4 68.0
5 76.2
6 100.5
7 130.0
8 149.3
9 180.0
e
|;
#<<<
gnuplot:=System.popen("gnuplot","w");
gnuplot.write(cmd); gnuplot.flush();
ask("Hit return to finish"); gnuplot.close();