Scattered plot
We have a text file from where we want to extract two values to
get a scattered plot of one value vs. the other.
The text file consists of thousands of iout_th sections.
Each iout_th section has (among other things)
a subsection rreac_th with values.
We want two values, e.g. the 13th and the 36th.
We used awk to extract those two values.
The following unix command will take a given input file, i.e. ens.o02.qa7_071202b and will produce an output file datatoplot.txt that will contain two columns with the values to be plotted.
awk -f 'test.awk' ens.o02.qa7_071202b > datatoplot.txtA scattered plot produced by Excel looks like this:

A scattered plot produced by Gnuplot looks like this:

Another dataset (ens.o02.qa7_072402):
With points:

With dots:

The lines typed in Gnuplot were:
set term gif set output "plot2.gif" set xlabel "k1" set ylabel "k2" plot "datatoplot.txt" with dots quit
