<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="serif">Some of you wanted to know how to make gnuplot
output files for incorporation into your documents or for
printing. I am including the contents of a file I used to create
some nmr style plots. In this file I create the plot on the
screen, create a PNG graphics file (bitmapped graphics), a SVG
file (should be vector graphics) and a postscript file. I then
return the system to its initial starting state. Now, I placed
all the commands in a file called "plotcommands" and when I got
into gnuplot plot I issued the command...<br>
<br>
call "plotcommands"<br>
<br>
and it executes all of them serially.<br>
<br>
<br>
</font><tt>plot [-5:.25] "filtered.dat" with lines title "Filtered"</tt><tt><br>
</tt><tt>replot "baseline2" with lines title "Baseline"</tt><tt><br>
</tt><tt>show term</tt><tt><br>
</tt><tt>show output</tt><tt><br>
</tt><tt>set term png</tt><tt><br>
</tt><tt>set output "plot.png"</tt><tt><br>
</tt><tt>replot</tt><tt><br>
</tt><tt>set term svg</tt><tt><br>
</tt><tt>set output "plot.svg"</tt><tt><br>
</tt><tt>replot</tt><tt><br>
</tt><tt>set term postscript enhanced color landscape</tt><tt><br>
</tt><tt>set output "plot.ps"</tt><tt><br>
</tt><tt>replot</tt><tt><br>
</tt><tt>set term x11</tt><tt><br>
</tt><tt>set output STDOUT</tt><font face="serif"><br>
<br>
<br>
Both the .png and .svg files should be great for importing into
documents (the .svg file should technically be better since it is
supposedly a vector format) and the postscript file should be
ready to be sent to a printer.<br>
<br>
<br>
</font>
<pre class="moz-signature" cols="72">--
Andrew J. Pounds, Ph.D. (<a class="moz-txt-link-abbreviated" href="mailto:pounds_aj@mercer.edu">pounds_aj@mercer.edu</a>)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
<a class="moz-txt-link-freetext" href="http://faculty.mercer.edu/pounds_aj">http://faculty.mercer.edu/pounds_aj</a>
</pre>
</body>
</html>