我正在尝试将我的 gnuplot 分解为堆叠图以提高可读性。我希望马力和扭矩数据在同一个图上,而其他数据分别显示在下面的堆叠图上——所有这些都由同一个 X 轴排列。有点像这样:
http://abloriginalparts.com/pb/wp_2f5b1e2e/images/img1226948967fe0ad9dc.JPG
我尝试了多图的变体,但似乎无法正确显示。这是非多重版本:
http://i1347.photobucket.com/albums/p715/balaguru42/dyno_zpsc0213c60.png
set term png
set y2range [-5:40]
set y2tics
set ytics nomirror
set xlabel 'RPM'
set ylabel 'Torque/Power'
set y2label 'AFR/Timing/Boost/MAF'
set key bottom
InRange(x)=((x>0) ? x : 1/0)
ConvertMap(x)=(x-1) * 14.5
ConvertMapDelta(x)=x * 14.5
ConvertMaf(x)=x * 3
ConvertMafDelta(x)=x * 3
set output "output/dyno.png"
plot \
"output/dyno.dat" using 1:(InRange($2)):3 \
with yerrorbars title 'Torque (ft-lbs)', \
"output/dyno.dat" using 1:(InRange($4)):5 \
with yerrorbars title 'Power (hp)', \
"output/dyno.dat" using 1:(InRange($6)):7 \
with yerrorbars axes x1y2 title 'AFR', \
"output/dyno.dat" using 1:(InRange($8)):9 \
with yerrorbars axes x1y2 title 'Ignition (deg)', \
"output/dyno.dat" using 1:(InRange($10)):11 \
with yerrorbars axes x1y2 title 'Intake (deg)', \
"output/dyno.dat" using 1:(InRange(ConvertMap($12))):(ConvertMapDelta($13)) \
with yerrorbars axes x1y2 title 'Boost (psi)', \
"output/dyno.dat" using 1:(InRange(ConvertMaf($16))):(ConvertMafDelta($17)) \
with yerrorbars axes x1y2 title 'MAF (V x 3)'