Difference between revisions of "Xmgrace"

From relax wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== xmgrace ==
 
== xmgrace ==
[http://ae-www.technion.ac.il/cgi-bin/man.cgi?section=all&topic=grace Program options]
+
[http://ae-www.technion.ac.il/cgi-bin/man.cgi?section=all&topic=grace xmgrace program options]
  
 
=== Convert to png ===
 
=== Convert to png ===
Line 18: Line 18:
 
Then issue an "HARDCOPY" with xmgrace
 
Then issue an "HARDCOPY" with xmgrace
 
  xmgrace -hardcopy xmgracefile.agr
 
  xmgrace -hardcopy xmgracefile.agr
 +
 +
== Batch eps conversion ==
 +
<pre>
 +
bash ;
 +
for epsfile in *.eps; do eps2png -resolution 200 $epsfile; epstopdf $epsfile; echo "Making pdf/png: $epsfile"; done
 +
</pre>
  
 
== See also ==
 
== See also ==
 
[[Category:External_programs]]
 
[[Category:External_programs]]

Revision as of 11:36, 13 June 2013

xmgrace

xmgrace program options

Convert to png

Add this to the end of the xmgrace file

#Print out to
@PRINT TO "/sbinlab2/tlinnet/output.png"
@HARDCOPY DEVICE "PNG"
@DEVICE "PNG" FONT ANTIALIASING on
# Make white background transparent
#@DEVICE "PNG" OP "transparent:on"
@DEVICE "PNG" OP "compression:9"
@PRINT

Then issue an "HARDCOPY" with xmgrace

xmgrace -hardcopy xmgracefile.agr

Batch eps conversion

bash ;
for epsfile in *.eps; do eps2png -resolution 200 $epsfile; epstopdf $epsfile; echo "Making pdf/png: $epsfile"; done

See also