Plot coordinate pairs: Difference between revisions

add gnuplot example
(→‎{{header|Tcl}}: Neatened up a bit)
(add gnuplot example)
Line 132:
 
No one would use the previous code to produce a plot (that looks [http://i40.tinypic.com/f2t0l0.png this way]; instead, normally we produce data through a program, then we plot the data using e.g. gnuplot or other powerful tools; the result (with GNUplot and without enhancement) could look [http://i41.tinypic.com/2qivbsn.png like this] instead.
 
=={{header|gnuplot}}==
[[Image:Plotxy-gnuplot.png|thumb|right|200px|Example gnuplot output]]
<lang gnuplot>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</lang>
 
<br clear=right>
 
=={{header|J}}==