xsize=10
ysize=8
size xsize ysize

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

pt=0.0352777778 ! 1 postscript point

set font texcmr
set hei 10*pt

tt=4*pt
lw=0.5*pt
set lwidth lw
set just tl

! graph settings
Tmn=0 ! temperature
Tmx=2
Tticks=1
Tsubticks=0.5
numn=0 !frequency
numx=5
nuticks=1
nusubticks=0.5
lambdamn=0 !relaxation
lambdamx=10
lambdaticks=2
lambdasubticks=1
timn=0 !for A(t) graphs, time should be consistent
timx=5
titicks=1
tisubticks=0.5

ticklength=0.1

!waterfalloffset=2

glw=2*lw
errw=glw/2
ms=2*pt ! marker size

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!BF4
amove -0.7 -0.5
begin graph
    size 12.3 10
    
    data BF4/BF4-mag-At.dat d3=c1,c2 d4=c1,c3
    data BF4/BF4-Fmu-At.dat d1=c1,c2 d2=c1,c3
    
    xtitle "\tex{$t$ (\si{\us})}"
    xaxis min timn max timx dticks titicks dsubticks tisubticks
    xaxis format "fix 1 prepend \tex{$ append $}" ! makes axis labels TeX. dec is just padding, because for some reason it doesn't work if prepend or append is first
    xticks length ticklength
    
    ytitle "\tex{$A(t)$ (\si{\percent})}"
    yaxis min 8 max 28 dticks 5 dsubticks 1
    yaxis format "fix 0 prepend \tex{$ append $}" ! makes axis labels TeX. dec is just padding, because for some reason it doesn't work if prepend or append is first
    yticks length ticklength
    ysubticks off
    
    d1 err d2 errwidth errw lwidth lw color rgb(0.25,0,0)
    d3 err d4 errwidth errw lwidth lw color rgb(0,0.1,0.25)
end graph

begin graph
    size 12.3 10
    
    data BF4/BF4-mag-At.fit d2=c1,c2
    data BF4/BF4-Fmu-At.fit d1=c1,c2
    
    xaxis min timn max timx
    xaxis off
    
    yaxis min 8 max 28
    yaxis off
    
    d1 line lwidth glw color rgb(1,0.05098,0.05098)
    d2 line lwidth glw color rgb(0.25,0.65,1)
end graph

amove 7.2 3.5
set color rgb(0.25,0.65,1)
text \tex{$T<T_{\mathrm{N}}$}

amove 2.1 5.5
set color rgb(1,0.05098,0.05098)
text \tex{$T\gg T_{\mathrm{N}}$}