What is Grace?
|Grace (formerly Xmgr) is a WYSIWYG two-dimensional plotting tool for numerical data using X. It has a convenient interactive GUI interface. Its strength lies in the fact that it combines the convenience of a graphical user interface with the power of a scripting language which enables it to do sophisticated calculations or perform automated tasks.||
Screenshots (click to enlarge)
- Start the GUI interface, type: xmgrace &
- Select/check the output medium and canvas size in File/Device Setup.
- If needed, set the graph size (‘Viewport’ in Plot/Graph Appearance).
- Load your data with Data/Import/ASCII. ‘Load as”: ‘Single set’ for two-column ASCII data, ‘Block data’ for multi-column ASCII data.
- Adjust the scales, axis labels and tick marks in Plot/Axis properties. Acknowledge all changes with ‘Apply’.
- Adjust lines, symbols, legends in Plot/Set appearance.
- Adjust titles, plot frame and legend display in Plot/Graph Appearance.
- Data can be manipulated in Data/Transformations. To shift a data set by 20 to the left, e.g., in ‘Evaluate Expression’ select the same set on the left and the right, and say Formula: y=y-20. As you’ll probably notice, Grace can do MUCH more than that. Explore at your leisure.
- When you like your plot, select File/Print. That’s it!
On hpc2015, one may use the following commands to load xmgrace into the environment:
To run xmgrace demos, type the follow (in X environment):
This launches Grace with an interactive session. When you exit from one session another interactive session is launched which explains the next topic. On hpc2015 you have to “cd” to $GRACE_HOME/examples first.