Grace Few Tips

XMGRACE and More

Xmgrace is very nice software to create 2D plot. However, few things are not that "User friendly", one needs careful search for that. Although Grace User Guide and Grace forum are available to help user, I would like to list few tips which I need to use more frequently.

Subscript & Superscript
Subscript
Let say we would like to write Ab then the xmgrace syntax for that is

A\sb\N

Superscript
Let say we would like to write Ab then the xmgrace syntax for that is

A\Sb\N

Symbol
The new method to insert special characters in xmgrace is:
Press ctrl-e while positioned in a text-edit field, the font dialog box will pop up
Select the desired font from the drop-down list.Use symbol to insert special symbols
Click on the desired character
Done!

The other standard way of inserting special character is that writing the syntax (from the ASCII table) in between \c and \C e.g.

Angstrom (Å)
\cE\C

Copyright (©)
\c)\C

Link to ASCII character table is here.
Changing The Default Settings
Find out the Default.agr file in your system (most likely it can be found in ~/.grace/templates/ or /usr/share/grace/templates/ folder. Make the changes and save it. The following things can be managed by editing this file
Linewidth
Default Font Size
Axis Font Size
Axis Width
Tick Label
Legends properties
Default Color Definition (For this search for @map color 7 to (220, 220, 220), "grey" kind of line)
Change the default settings to print to .png files with 300dpi:

create the file ~/.grace/gracerc.user and enter the following text:

HARDCOPY DEVICE "PNG"
DEVICE "PNG" DPI 300

Comments

Popular posts from this blog

VMD High Resolution Image and Movie

Inset Plot in GRACE (Xmgrace)