0

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

enter image description here

Ian Bush
  • 6,996
  • 1
  • 21
  • 27

1 Answers1

0

You either pre-process them to make them two-column or you repeat the -block [...] -bxy [...] instructions for each file, like this:

xmgrace -block file1.dat -bxy 1:3 -block file2.dat -bxy 1:3 -block file3.dat -bxy 1:3
lr1985
  • 1,085
  • 1
  • 9
  • 21