xsize=10
ysize=18.2
size xsize ysize
pt=0.0352777778 ! 1 postscript point

fs=12*pt  !font size
tt=4*pt   !tick length
lw=0.5*pt !line width
glw=2*lw  !graph line width
ms=4*pt   !marker size

! graph settings
xmn=0
xmx=10
ymn=0
ymx=1
xticks=2
xsubticks=1
yticks=0.2
ysubticks=0.1

set lwidth lw
set hei fs
set just tl

! funky LaTeX commands
begin texpreamble
    % set fonts used for text and maths to Palatino
    \usepackage{mathpazo}
    \renewcommand{\familydefault}{ppl}
    \usepackage{upgreek}
    \usepackage[load=abbr]{siunitx}
    \usepackage{bm}
end texpreamble

! set the normal font to AvantGarde-Demi, which is really obviously
! different to Palatino, so you can spot it if you forget to wrap
! text in \tex{}
set font psagd 

glw=2*lw
xgraphsize=11
ygraphsize=6
ygraphmove=4.2
yoffset=0.3

amove 0 ygraphmove*3+yoffset
begin graph
 size xgraphsize ygraphsize
 nobox
 
 data "fm-2008-1.dat.processed" d1=c1,c2
 
 xaxis min xmn max xmx dticks xticks dsubticks xsubticks
 xlabels off
 xaxis format "round 1 prepend \tex{$ append $}"
 xticks length tt
 
 ytitle "\tex{$f(\tilde{\nu })$}"
 yaxis min ymn max ymx dticks yticks dsubticks ysubticks
 yaxis format "round 1 prepend \tex{$ append $}"
 yticks length tt

 d1 lstyle 1 color rgb255(255,13,13) lwidth glw
end graph

begin key
 nobox
 pos tr
 text "\tex{FM, $\bm{\mu} \parallel [001]$}"
end key

begin key
 nobox
 pos tl
 text "\tex{(a)}"
end key

amove 0 ygraphmove*2+yoffset
begin graph
 size xgraphsize ygraphsize
 nobox
 
 data "afm-2008-1.dat.processed" d1=c1,c2
 
 xaxis min xmn max xmx dticks xticks dsubticks xsubticks
 xlabels off
 xaxis format "round 1 prepend \tex{$ append $}"
 xticks length tt
 
 ytitle "\tex{$f(\tilde{\nu })$}"
 yaxis min ymn max ymx dticks yticks dsubticks ysubticks
 yaxis format "round 1 prepend \tex{$ append $}" nolast
 yticks length tt

 d1 lstyle 1 color rgb255(48,80,248) lwidth glw
end graph

begin key
 nobox
 pos tr
 text "\tex{AFM, $\bm{\mu} \parallel [001]$}"
end key

begin key
 nobox
 pos tl
 text "\tex{(b)}"
end key

amove 0 ygraphmove*1+yoffset
begin graph
 size xgraphsize ygraphsize
 nobox
 
 data "afm-2008-2.dat.processed" d1=c1,c2
 
 xaxis min xmn max xmx dticks xticks dsubticks xsubticks
 xlabels off
 xaxis format "round 1 prepend \tex{$ append $}"
 xticks length tt
 
 ytitle "\tex{$f(\tilde{\nu })$}"
 yaxis min ymn max ymx dticks yticks dsubticks ysubticks
 yaxis format "round 1 prepend \tex{$ append $}" nolast
 yticks length tt

 d1 lstyle 3 color rgb255(48,80,248) lwidth glw
end graph

begin key
 nobox
 pos tr
 text "\tex{AFM, $\bm{\mu} \parallel [011]$}"
end key

begin key
 nobox
 pos tl
 text "\tex{(c)}"
end key

amove 0 yoffset
begin graph
 size xgraphsize ygraphsize
 nobox
 
 data "afm-2008-3.dat.processed" d1=c1,c2
 
 xtitle "\tex{$\tilde{\nu}$ (\si{\MHz\per\nm\cubed\per}$/\mu _{\mathrm{B}}$)}"
 xaxis min xmn max xmx dticks xticks dsubticks xsubticks
 xaxis format "round 1 prepend \tex{$ append $}"
 xticks length tt
 
 ytitle "\tex{$f(\tilde{\nu })$}"
 yaxis min ymn max ymx dticks yticks dsubticks ysubticks
 yaxis format "round 1 prepend \tex{$ append $}" nolast
 yticks length tt

 d1 lstyle 5 color rgb255(48,80,248) lwidth glw
end graph

begin key
 nobox
 pos tr
 text "\tex{AFM, $\bm{\mu} \parallel [111]$}"
end key

begin key
 nobox
 pos tl
 text "\tex{(d)}"
end key