Gnuplot 脚本结合了“嵌入”和带索引块的格式
基本上,我想结合 http://t16web.lanl.gov/Kawano /gnuplot/datafile2-e.html#7.4 和 http: //t16web.lanl.gov/Kawano/gnuplot/datafile2-e.html#7.2。我正在尝试获取一个嵌入纯文本数据点的 gnuplot 脚本,以便在一个绘图命令中使用三种不同的颜色进行绘图,如下所示:
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
但是,它仅以一种颜色显示三个块,并在第二个和第三个索引上引发错误命令。
Basically, I want to combine http://t16web.lanl.gov/Kawano/gnuplot/datafile2-e.html#7.4 and http://t16web.lanl.gov/Kawano/gnuplot/datafile2-e.html#7.2. I'm trying to get a gnuplot script with embedded plaintext data points to plot using three different colours all in one plot command, like so:
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
However, it just displays the three blocks in one colour and throws an error on the second and third index commands.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,我终于猜到了它的工作原理:
Never mind, I finally guessed it into working: