gnuplot cheats

Export to eps

set term post eps col enh
set out “stupidfit.eps”
replot

Creating histograms with gnuplot:

binwidth=5
bin(x,width)=width*floor(x/width)

plot ‘datafile’ using (bin($1,binwidth)):(1.0) smooth freq with boxes

from source.

Export the histogram to file

set table “whatever.txt”
replot

Draw circle

set parametric
set size square
set xrange [-1:1]
set yrange [-1:1]
plot [0:2*pi] sin(t),cos(t)

Plot styles

ps2pdf cheats

ps2pdf -dEPSCrop foo.eps

crops the eps/ps file when it is converted to pdf (article).