0

-nxy 选项可以与 -pipe 选项一起使用吗?

例如,假设“somecommand”产生一个包含 5 列 (x y1 y2 y3 y4) 的输出。我可以将 y 绘制为 x 的函数,使用

somecommand > tmp.dat
xmgrace -nxy tmp.dat

我可以绕过使用 -pipe 选项创建文件 tmp.dat 并仍然将 4 个不同的 y 绘制在一起吗?

somecommand | xmgrace -pipe 

将绘制 y1 vs x。我想要所有的 y 和 x。

4

1 回答 1

0

是的,只需通过-to-nxy告诉 xmgrace 使用标准输入作为数据源:

somecommand | xmgrace -pipe -nxy -
于 2018-04-11T09:02:00.857 回答