我在尝试从 gnuplot 中的标准输入绘制两个不同的数据集时遇到了一些问题...这是我正在测试的命令:
% gnuplot -persist <<EOF
plot '-' index 0 with points, \
'' index 1 with points
1 1.2
2 1.8
3 1.6
1.1 0.8
2.1 0.3
3.1 1.0
EOF
任何建议都会很有帮助。 谢谢
最佳答案
我想这应该对你有帮助
It’s even possible to read data from standard input multiple times within the same plot command:
plot '-', '-'
will read data until an end-of-file character is encoun tered and then expect to read more data (for the second “file”) until finding a second EOF character. Of course, the data entered at a prompt this way can have multiple col umns, from which we can select some with using, and all the other features of the plot command can be used as well.
(来自:Philipp K. Janert,Gnuplot 实战)
关于gnuplot:绘制来自标准输入的两个数据集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8468099/