set preamble "\usepackage{amsmath}"

set width 14*unit(cm)

set axis x arrow nomirrored
set axis y arrow nomirrored
set yrange [0:2.2]
set key top left

unset ytics

set grid

set terminal pdf

set logscale x
#set xtics 0.1,10,100

set output "spectrum.pdf"
set xlabel "Frequency [Hz]"
set ylabel "Acceleration"
plot "spectrum-x.dat" w lp lw 5 lt 2 pt 16 color red   ti "$s_x(f)$",\
     "spectrum-y.dat" w lp lw 3 lt 3 pt 17 color green ti "$s_y(f)$",\
     "spectrum-z.dat" w lp lw 1 lt 4 pt 18 color blue  ti "$s_z(f)$"
