Search code examples
graphxmgrace

Command line plotting of xvg using grace


I have an xvg file I wish to draw a graph of it using command line grace. However, I have no idea how to read the file into grace nor how to graph it once it is read. Any help is appreciated.


Solution

  • Just type "xmgrace filename" to plot the graph, if the file contains only numeric data. You can also plot specific columns as shown below.

    1. xmgrace -block filename -bxy 1:3
    2. xmgrace -block filename -bxy 1:3 -bxy 1:2
    3. xmgrace -block filename1 -bxy 1:2 -block filename2 -bxy 1:2