gnuplot基本script

来源:互联网 发布:怎么在ubuntu上安装qq 编辑:程序博客网 时间:2024/06/08 14:36

# 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