# 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
最新推荐文章于 2023-03-05 15:30:22 发布