{"id":249,"date":"2009-01-30T15:32:38","date_gmt":"2009-01-30T13:32:38","guid":{"rendered":"http:\/\/blog.louic.nl\/?p=249"},"modified":"2013-09-18T15:23:17","modified_gmt":"2013-09-18T13:23:17","slug":"some-xmgrace-tips-xmgrace-cheatsheet","status":"publish","type":"post","link":"https:\/\/blog.louic.nl\/?p=249","title":{"rendered":"Some xmgrace tips"},"content":{"rendered":"<p>Xmgrace is a very nice piece of software to create publication quality figures. Even better is that it stores your data and graph layout options as plain text (which is especially nice in combination with subversion or scripts to edit your graph).<\/p>\n<p>But some things are not very intuitive, which is why I keep a list of some useful possibilities below:<\/p>\n<ul>\n<li>Subscript, superscript<br \/>\nx-squared: <code>x\\S2\\N<\/code><br \/>\nsubscript: <code>3\\s10\\N<\/code>\n<\/li>\n<li>Greek letters, example: theta<br \/>\n<code>\\f{Symbol}q\\f{}<\/code> or shorter: <code>\\xq\\0q<\/code> to get a theta symbol followed by the letter q: \\x switches to the Symbol font and \\0 switches back to Times-Roman.\n<\/li>\n<li>Special symbols, example: Angstrom symbol<br \/>\n<code>\\cE\\C<\/code><br \/>\nFor other characters, look at this list: <a href=\"http:\/\/blog.louic.nl\/files\/ascii.html\">ascii table with low and high characters<\/a>. Just use the character from the left column between \\c and \\C to produce the one from the right column. I highlighted the most interesting characters (for a scientist). The \\c and \\C option are listed as deprecated in the xmgrace manual.<del datetime=\"2010-06-23T12:33:26+00:00\">, but what is the new way?.<\/del> The new method to insert special characters in xmgrace is:<\/p>\n<ul>\n<li>Press ctrl-e while positioned in a text-edit field to bring up the font dialog box.<\/li>\n<li>Select the desired font from the drop-down list. You probably want to use Symbol because it contains many of the commonly used special characters.<\/li>\n<li>Click on the character you want to insert<\/li>\n<\/ul>\n<\/li>\n<li>Saving the default settings for new graphs:<br \/>\nopen xmgrace, make the desired settings, save them as:<br \/>\n<code>~\/.grace\/templates\/Default.agr<\/code><br \/>\nUnfortunately, this does not save the \"print\" settings, but see below.\n<\/li>\n<li>Setting the default printer to print to .png files with 300dpi:<br \/>\ncreate the file <code>~\/.grace\/gracerc.user<\/code> and enter the following text:<br \/>\n<code>HARDCOPY DEVICE \"PNG\"<br \/>\nDEVICE \"PNG\" DPI 300<\/code><\/li>\n<li>Changing the definition of the default colors:<br \/>\nJust edit the lines that say<br \/>\n<code>@map color 7 to (220, 220, 220), \"grey\"<\/code><br \/>\nin the saved file. Edit the default file (see above) if you wish to use the new colors everywhere from now on.<\/li>\n<\/ul>\n<p>See also the <a href=\"http:\/\/plasma-gate.weizmann.ac.il\/Grace\/doc\/UsersGuide.html\">Grace users guide<\/a> and the <a href=\"http:\/\/plasma-gate.weizmann.ac.il\/Grace\/phpbb\/\">grace forums<\/a>.<\/p>\n<p>If you have more helpful hints, please post them in the comments, so that this blog post will become an interesting collection of tips that can be turned into a useful \"cheat sheet\". <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xmgrace is a very nice piece of software to create publication quality figures. Even better is that it stores your data and graph layout options as plain text (which is especially nice in combination with subversion or scripts to edit &hellip; <a href=\"https:\/\/blog.louic.nl\/?p=249\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[34,37],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts\/249"}],"collection":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=249"}],"version-history":[{"count":44,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":682,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts\/249\/revisions\/682"}],"wp:attachment":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}