尊敬的堆栈溢出用户, 我是gnuplot的新手。 图例的字母和线条在gnuplot的输出图中被错误处理了。
我使用了下面的代码。
请帮助我...
gnuplot -persist <<EOF
set size ratio 3/4
set tics font "Arial, 15"
set xrange [494:506]
set yrange [0:1]
set xlabel 'wavelenth [nm]' font "Arial, 20"
set ylabel 'probability' font "Arial, 20" offset -2,0
set lmargin 10
set bmargin 6
set rmargin 25
set key font "Arial, 15" outside spacing 1.5
plot 'result.out' using 1:2 with lines title "transmittance"
replot 'result.out' using 1:3 with lines title "reflectance" lc rgb "dark- green"
replot 'result.out' using 1:4 with lines title "absorbance"
set terminal png
set output 'out.png'
replot
EOF