title: Bash script which plots data using XMGRACE tool
body: <p>I have written a bash script that generates files containing data and saves them to a directory. I would like my script to also plot these files using xmgrace.</p>
  
  <p>Initially I just need a command line or series of command lines that will create an xmgrace file, save it, choose the scales of the y and x axis, set the y axis to be logarithmic, label the x and y axis and title the graph.  </p>
  
  <p>I have tried the line to start with</p>
  
  <pre><code>    xmgrace filename xaxis label "Label 1" yaxis label "Label 2" PRINT TO "filename.eps" DEVICE "EPS" OP "level2" 
  </code></pre>
  
  <p>This plots the data but does not put the labels on it or save it and the terminal returns</p>
  
  <pre><code>    Can't stat file xaxis
      Can't stat file label
      Can't stat file Label 1
      ...
      ... 
  </code></pre>
  
  <p>Is there also a flag I can put in this command line so that xmgrace does not actually open the file, it just creates it and saves it. This would be much better when I use it in the Bash Script.</p>
  
  <p>Thank you very much</p>
  
  <p>p.s. I am only using xmgrace because it it the plotting tool I am most familiar with to use manually. I would welcome any suggestion of more appropriate tools for this task. </p>