简体   繁体   English

如何使用 XMGRACE 中的公共轴从 y 轴上的多个文件中打印第三列(gfortran,Linux 终端)

[英]How to print the 3rd column from multiple files on the y axis with a common axis in XMGRACE (gfortran, Linux terminal)

I have three files of the format '.dat' (available in the link down below), I need to plot their third columns on Y axis while they all have a common first column ( so a common X axis ), how to plot all of them in the same plot on XMGRACE.我有三个格式为“.dat”的文件(在下面的链接中可用),我需要在 Y 轴上绘制它们的第三列,而它们都有一个共同的第一列(所以一个共同的 X 轴),如何绘制所有他们在 XMGRACE 的同一个情节中。 I know how to plot the third column from a single '.dat' file by xmgrance -block file.dat -bxy 'x-axis column number: y-axis column number .我知道如何通过xmgrance -block file.dat -bxy 'x-axis column number: y-axis column number从单个 '.dat' 文件中绘制第三列。 But is there a similar code for multiple files.但是多个文件是否有类似的代码。

Link for files : https://drive.google.com/drive/folders/1iuNdjnyUjphh5WUf-3oVubH0fm0zut-P?usp=sharing文件链接: https ://drive.google.com/drive/folders/1iuNdjnyUjphh5WUf-3oVubH0fm0zut-P?usp=sharing

I should get a graph like this我应该得到这样的图表

在此处输入图像描述

您可以对它们进行预处理以使它们成为两列,或者对每个文件重复-block [...] -bxy [...]指令,如下所示:

xmgrace -block file1.dat -bxy 1:3 -block file2.dat -bxy 1:3 -block file3.dat -bxy 1:3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM