You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
747 B
28 lines
747 B
# 出力設定
|
|
set terminal pdfcairo size 4in,3in font "Arial,12"
|
|
|
|
# 入出力ファイルが外部から指定されていない場合のデフォルト値
|
|
if (!exists("infile")) infile = 'output.dat'
|
|
if (!exists("outfile")) outfile = 'path_length_plot.pdf'
|
|
|
|
set output outfile
|
|
|
|
set xlabel "generation"
|
|
set ylabel "path length"
|
|
set grid
|
|
|
|
set xrange [0:100]
|
|
set yrange [0:80]
|
|
|
|
set xtics 10
|
|
set ytics 10
|
|
|
|
# カンマ区切りのデータに対応
|
|
set datafile separator ","
|
|
|
|
# データのプロット
|
|
# $0 は行番号(0から開始)を意味します
|
|
# 1列目:min, 2列目:avg, 3列目:max を想定
|
|
plot infile using 0:1 with lines title "Min", \
|
|
'' using 0:2 with lines title "Avg", \
|
|
'' using 0:3 with lines title "Max"
|
|
|