gnuplot:绘制来自标准输入的两个数据集

标签 gnuplot

我在尝试从 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/

相关文章:

gnuplot - 如何更改 gnuplot 的图形大小

Gnuplot - 比较一张图片中的多个箱线图对

matlab - 使用特定标记绘图

plot - 在 Gnuplot 中显示 X 轴并与 y 轴范围对齐

Gnuplot:无法识别行

gnuplot - 图形和png图像边缘之间没有空间

gnuplot - 不同功能的样本数量不同

graph - GNUPlot:如何设置 x 刻度的最大数量

gnuplot - 如何使用 gnuplot 在一个图中绘制具有不同 x 范围的折线图

plot - 将误差线设为转换后的值