[CSC 335] Graphics files in Gnuplot
Andrew J. Pounds
pounds_aj at mercer.edu
Tue Oct 29 02:57:40 EDT 2013
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...
call "plotcommands"
and it executes all of them serially.
plot [-5:.25] "filtered.dat" with lines title "Filtered"
replot "baseline2" with lines title "Baseline"
show term
show output
set term png
set output "plot.png"
replot
set term svg
set output "plot.svg"
replot
set term postscript enhanced color landscape
set output "plot.ps"
replot
set term x11
set output STDOUT
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.
--
Andrew J. Pounds, Ph.D. (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
http://faculty.mercer.edu/pounds_aj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc335/attachments/20131029/34c719d2/attachment.html>
More information about the csc335
mailing list