Tips for Xmgrace

General Information

 * User Guide
 * Xmgrace Forum

Editing

 * Beware: there is no Undo option but Reverse to saved so it is better to often save your working document.
 * copy-paste within different boxes does not seem to be possible, one can open a terminal for temporary paste.

General parametrization of the software
create the file ~/.grace/gracerc.user and enter your device parameters.

Example : setting default printing to the .eps format : add the following line HARDCOPY DEVICE "EPS"

Creating a default template graph used when opening xmgrace
A simple way to customize Xmgrace is to use a default template .agr file that you can save in the directory (create it if it does not exist)

~/.grace/templates/Default.agr

Manipulating data

 * functions available
 * you can directly access data of set sn via sn.y and sn.x

Useful inline commands and aliases

 * grabbing data from pipe

alias xmlog='xmgrace -log xy' alias xmlogy='xmgrace -log y' alias xmlogx='xmgrace -log x' alias xmbar='xmgrace -settype xydy' alias xmlogbar='xmgrace -log xy -settype xydy' alias xmlogybar='xmgrace -log y -settype xydy'
 * Some bash aliases (or command lines) for defining axis and data type

Typography
Ctrl-e and then choose your token and press Apply. It will insert the chosen token in your current text line.
 * when typing in a text, you can invoke the Font-Tool application by pressing

\0 Times-Roman \1 Times-Italic \2 Time-Bold \3 Time-BoldItalic \4 Helvetica \5 Helvetica-Oblique \6 Helvetica-Bold \7 Helvetica-BoldOblique \f{} get back to original font \x Symbol (in particular Greek letters) \+ increase size \- decrease size \b backspace (size of previous character) \u begin underline \U stop underline \s subscript \S superscript \N normal \n newline \o begin overline \O end overline
 * Shortcuts for \f{Police} (have to check this)
 * Shortcuts for text manipulation (From Grace guide)


 * Useful examples: