Xmgrace: plot all columns in multiple column file as a function of the first
<p>I know that with xmgrace if I have a multiple column file I can plot a certain column as a function of another (say, 3 vs 1) with the command</p>

<pre><code>xmgrace -block file.dat -bxy 1:3
</code></pre>

<p>If I want to plot 2vs1 and 3vs1 in the same window, I will simply use the command</p>

<pre><code>xmgrace -block file.dat -bxy 1:2 -block file.dat -bxy 1:3
</code></pre>

<p>But if the files contains a large number of columns and I want to plot all of them as a function of the first (2vs1, 3vs1, 4vs1 etc.) in the same window it becomes impractical to use this command.</p>

<p>Is there a simple command to plot all the columns in a file as a function of the first (2vs1, 3vs1 etc.)?</p>

<p>I have tried </p>

<pre><code>for i in {2..n}; do xmgrace -block file.dat -bxy 1:$i; done
</code></pre>

<p>But this way the plots will appear in different windows...</p>