Gnuplot

Simple example

plot "hists.dat" using 1:2 title 'Column' with lines, \
       "hists.dat" u 1:3 t 'Beam' w linespoints
set terminal postscript color enhanced 
set output "my-plot.ps"
replot
set terminal x11

Then open the output with gv my-plot.ps.

To merge columns in two different files:

 paste qqqqg_ymax_V.dat qqqqg_ymax_R.dat > qqqqg_ymax.dat

then in gnuplot:
plot "qqqqg_ymax.dat" u 1:($2+$5):(sqrt($3*$3 + $6*$6)) w e

Reference

Gnuplot homepage | Demo scripts | Documentation
GNUPLOT 4.2 - A Brief Manual and Tutorial

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License