gnuplot:从stdin绘制两个数据集 [英] gnuplot: plot two data sets from stdin

查看:54
本文介绍了gnuplot:从stdin绘制两个数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从gnuplot中的stdin绘制两个不同的数据集时遇到一些问题...这是我正在测试的命令:

I'm having some problems trying to plot two different data sets from stdin in gnuplot... This is the command I'm testing with:

% 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

任何建议都会非常有帮助.谢谢

Any advise will be very helpful. Thanks

推荐答案

我认为这应该对您有帮助

I think this should help you

甚至可以在同一时间内多次从标准输入中读取数据绘图命令:

It’s even possible to read data from standard input multiple times within the same plot command:

plot '-', '-' 

将读取数据,直到出现文件结尾字符麻烦,然后期望读取更多数据(用于第二个文件"),直到找到第二个EOF字符.当然,以这种方式在提示符下输入的数据可以具有多个列umns,我们可以从中选择一些使用方法,以及该功能的所有其他功能还可以使用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.

(来自:Gnuplot In Action,Philipp K. Janert)

(from: Philipp K. Janert, Gnuplot In Action)

这篇关于gnuplot:从stdin绘制两个数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆