Documente Academic
Documente Profesional
Documente Cultură
R F Evans
Introduction
Highly customisable
Scriptable
Produces very professional graphs Small file sizes Fast and lightweight Available as a standard linux package
(Caption)
Axis labels
Units
Gnuplot in practice
p stands for plot (data file) u stands for using (columns) w stands for with lp stands for linespoints
Gnuplot in practice
Lets set a more appropriate yrange and name our plot p [][0:1.1]"./data.dat" u 1:2 w lp ti Data
Gnuplot in practice
set title Plot of Gaussian function set xlabel Value set ylabel Probability replot
Gnuplot in practice
A box histrogram would look nicer in black p [][0:1.1]"./data.dat" u 1:2 w boxes lt -1 ti "Data lt is line type
Gnuplot in practice
p [][0:1.1]"./data.dat" every 4 u 1:2 w boxes lt -1 ti "Data every specifies that every nth point is plotted
Gnuplot in practice
Finally output graph to file: set terminal postscript eps enhanced color "Palatino" 16
Gnuplot Scripting
This can all be put in a script; plot.gpl # Set Terminal type
ti "Data"
Gnuplot in practice
Extra info:
http://t16web.lanl.gov/Kawano/gnuplot/index-e.html www.fisica.edu.uy/~marti/repartidos/gnuplotbook1.pdf