简体   繁体   中英

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. 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 . But is there a similar code for multiple files.

Link for files : 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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