xsize=15.7
ysize=8.1
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}
    \usepackage{bm}
end texpreamble

pt=0.0352777778 ! 1 postscript point

set font texcmr
set hei 11*pt
set texscale scale

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=2
nuticks=0.5
nusubticks=0.25
lambdamn=0 !relaxation
lambdamx=2
lambdaticks=1
lambdasubticks=0.25
timn=0 !for A(t) graphs, time should be consistent
timx=3
titicks=1
tisubticks=0.5

xgraphsize=5
ygraphsize=5
xbiggraphsize=7

xoffset=-0.7
yoffset=3.5

ticklength=0.1

!waterfalloffset=2

glw=2*lw
Aterrw=0.001
errw=glw*2
ms=3.5*pt ! marker size

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!BF4
amove 0.3 0.2+yoffset
begin graph
    size xbiggraphsize ygraphsize
    
    data Cupyz2pyo2BF42/452-0.0998K.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
    xlabels off
    
    ytitle "\tex{$A(t)$ (\%)}"
    yaxis min 10 max 20 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
    
    d1 err d2 errwidth Aterrw lwidth lw color rgb(0,0.1,0.25)
end graph

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

begin key
 pos tl nobox
 text "\tex{[Cu(pyz)$_2$(pyo)$_2$](BF$_4$)$_2$}"
end key

begin graph
    size xbiggraphsize ygraphsize
    
    data Cupyz2pyo2BF42/452-0.0998K.fit d1=c1,c2
    
    xaxis min timn max timx
    xaxis off
    
    yaxis min 10 max 20
    yaxis off
    
    d1 line lwidth glw color rgb(0.25,0.65,1)
end graph


rmove xbiggraphsize+xoffset 0
begin graph
    size xgraphsize ygraphsize
    
    data Cupyz2pyo2BF42/Cu(pyz)2(pyo)2(BF4)2-nu(T).dat d1=c4,c7 d2=c4,c8
    data Cupyz2pyo2BF42/Cu(pyz)2(pyo)2(BF4)2-nu(T).tab d3=c1,c2
    
    !xtitle "\tex{$T$ (\si{\kelvin})}"
    xaxis min Tmn max Tmx dticks Tticks dsubticks Tsubticks
    xaxis 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
    xticks length ticklength
    xlabels off
    !xsubticks off
    
    ytitle "\tex{$\nu$ (MHz)}" dist -0.000001
    yaxis min numn max numx dticks nuticks dsubticks nusubticks !nolast
    yaxis format "round 2 nozeroes 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 marker fcircle err d2 msize ms errwidth 0.05 lwidth 0.01
    d3 line lwidth glw color rgb255(48,80,248)
end graph

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


rmove xgraphsize+xoffset+10*pt 0
begin graph
    size xgraphsize ygraphsize
    
    data Cupyz2pyo2BF42/Cu(pyz)2(pyo)2(BF4)2-nu(T).dat d1=c4,c9 d2=c4,c10 d3=c4,c5 d4=c4,c6 d5=c4,c11 d6=c4,c12

    !xtitle "\tex{$T$ (\si{\kelvin})}"
    xaxis min Tmn max Tmx dticks Tticks dsubticks Tsubticks
    xaxis 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
    xticks length ticklength
    xlabels off
    !xsubticks off
    
    ytitle "\tex{$\lambda$ (MHz)}"
    yaxis min lambdamn max lambdamx dticks lambdaticks dsubticks lambdasubticks !nolast
    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 marker fcircle err d2 msize ms color red
    d3 marker wcircle err d4 msize ms color rgb255(255,13,13) errwidth erw lwidth lw
    !d5 marker fcircle err d6 msize ms color green !long
end graph

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

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!PF6
amove 0.3 0.2
begin graph
    size xbiggraphsize ygraphsize
    
    data Cupyz2pyo2PF62/0.2K.dat d1=c1,c2 d2=c1,c3
    let d1=d1+14
    
    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
    !xlabels off
    
    ytitle "\tex{$A(t)$ (\%)}"
    yaxis min 9 max 24 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
    
    d1 err d2 errwidth Aterrw lwidth lw color rgb(0,0.1,0.25)
end graph

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

begin key
 pos tl nobox
 text "\tex{[Cu(pyz)$_2$(pyo)$_2$](PF$_6$)$_2$}"
end key

begin graph
    size xbiggraphsize ygraphsize
    
    data Cupyz2pyo2PF62/0.2K.fit d1=c1,c2
    let d1=d1+14
    
    xaxis min timn max timx
    xaxis off
    
    yaxis min 9 max 24
    yaxis off
    
    d1 line lwidth glw color rgb(0.25,0.65,1)
end graph


rmove xbiggraphsize+xoffset 0
begin graph
    size xgraphsize ygraphsize
    
    data Cupyz2pyo2PF62/try3b.dat d1=c4,c5 d2=c4,c6
    data Cupyz2pyo2PF62/try3.tab d3=c1,c2
    
    xtitle "\tex{$T$ (\si{\kelvin})}"
    xaxis min Tmn max Tmx dticks Tticks dsubticks Tsubticks
    xaxis 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
    xticks length ticklength
    !xlabels off
    !xsubticks off
    
    ytitle "\tex{$\nu$ (MHz)}" dist -0.000001
    yaxis min numn max numx dticks nuticks dsubticks nusubticks nolast
    yaxis format "round 2 nozeroes 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 marker fcircle err d2 msize ms errwidth 0.05 lwidth 0.01
    d3 line lwidth glw color rgb255(48,80,248)
end graph

begin key
 pos tr nobox
 text "\tex{(e)}"
end key

rmove xgraphsize+xoffset+10*pt 0
begin graph
    size xgraphsize ygraphsize
    
    data Cupyz2pyo2PF62/try3b.dat d1=c4,c7 d2=c4,c8 d3=c4,c9 d4=c4,c10 d5=c4,c11 d6=c4,c12

    xtitle "\tex{$T$ (\si{\kelvin})}"
    xaxis min Tmn max Tmx dticks Tticks dsubticks Tsubticks
    xaxis 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
    xticks length ticklength
    !xlabels off
    !xsubticks off
    
    ytitle "\tex{$\lambda$ (MHz)}"
    yaxis min lambdamn max lambdamx dticks lambdaticks dsubticks lambdasubticks nolast
    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 marker fcircle err d2 msize ms color red
    d3 marker wcircle err d4 msize ms color rgb255(255,13,13) errwidth erw lwidth lw
    !d5 marker fcircle err d6 msize ms color green
end graph

begin key
 pos tr nobox
 text "\tex{(f)}"
end key


set color rgb(0.25,0.65,1)

amove 4.5 6
text \tex{0.1 K}

amove 4.5 2.1
text \tex{0.2 K}