Gnuplot脚本组合";“嵌入式”;使用索引块格式化
基本上,我想结合和。我正在尝试获取一个带有嵌入明文数据点的gnuplot脚本,以便使用三种不同的颜色在一个plot命令中进行绘图,如下所示:Gnuplot脚本组合";“嵌入式”;使用索引块格式化,gnuplot,Gnuplot,基本上,我想结合和。我正在尝试获取一个带有嵌入明文数据点的gnuplot脚本,以便使用三种不同的颜色在一个plot命令中进行绘图,如下所示: plot \ "-" index 0 title "waveform" with lines, \ "-" index 1 title "-trig" with lines, \ "-" index 2 title "+trig" with lines 1418 -0.04 1419 -0.0
plot \
"-" index 0 title "waveform" with lines, \
"-" index 1 title "-trig" with lines, \
"-" index 2 title "+trig" with lines
1418 -0.04
1419 -0.04
1420 +5.28
1421 +5.20
1422 +5.16
1418 3.66
1422 3.66
1418 3.86
1422 3.86
end
但是,它只是以一种颜色显示三个块,并在第二个和第三个索引命令上抛出一个错误。没关系,我终于猜到它起作用了:
plot \
"-" title "" with lines, \
"-" title "-trig" with lines, \
"-" title "+trig" with lines
1418 -0.04
1419 -0.04
1420 +5.28
1421 +5.20
1422 +5.16
end
1418 3.66
1422 3.66
end
1418 3.86
1422 3.86
end