gnuplot基本script

# ls
data-file1.txt data-file2.txt plot.sh


# cat plot.sh 
gnuplot << EOF
set terminal png
set output "name.png"
set yrange[1:1000]
set logscale y
plot "data-file1.txt" title "Title 1" using 1:2 w l, "data-file2.txt"  title "Title 2"  using 1:2 w l
EOF


# ./plot.sh


# ls
data-file1.txt data-file2.txt plot.sh name.png

你可能感兴趣的:(gnuplot基本script)