使用xmgrace时,如何指定要在多个文件上绘制的列?

use*_*266 3 xmgrace

我知道如果我这样做:

xmgrace file1 file2 file2
Run Code Online (Sandbox Code Playgroud)

将有三组不同颜色的图表,如果这些文件中有多列,则第二列将针对第一列绘制.

如果我想为所有人制作第3对第1对象怎么办?

我试过了

xmgrace -block file1 file2 file2 -bxy 1:3
Run Code Online (Sandbox Code Playgroud)

这不起作用

谢谢你的帮助!

fee*_*dMe 6

解:

有必要为每个文件指定-block标志和-bxy col1:col2标志/信息.

xmgrace -block file1 -bxy 1:3 -block file2 -bxy 1:3 -block file3 -bxy 1:3
Run Code Online (Sandbox Code Playgroud)

说明:

从xmgrace手册:

 -block file
          Assume the data file is block data
Run Code Online (Sandbox Code Playgroud)
   -bxy x:y:etc.
          Form a set from the current block data set using the current set
          type from columns given in the argument
Run Code Online (Sandbox Code Playgroud)

如果要从同一文件中绘制多组列,则只需使用-block一次,指定当前块数据集,然后使用-bxy从当前块数据集形成数据集:

xmgrace -block file1 -bxy 1:3 -bxy 1:4 -bxy 1:5
Run Code Online (Sandbox Code Playgroud)

对于多个文件,例如您正在尝试的内容,您必须按顺序将每个文件指定为"当前"块数据集,并且每次使用时从所需列创建新集-bxy n:m.

键入更耗时,但遵循单个数据文件情况的逻辑进展.