size 15 10
 

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

set lwidth lw
set hei fs
set texscale scale
set just tl

begin texpreamble
    % set fonts used for text and maths to Palatino
    \usepackage{mathpazo}
    \renewcommand{\familydefault}{ppl}
    \usepackage{upgreek}
    %\usepackage[load=abbr]{siunitx}
    %\usepackage{bm}
    \usepackage{textcomp}
    \newcommand{\murm}{%
      \ifmmode
        \mathchoice
            {\hbox{\normalsize\textmu}}
            {\hbox{\normalsize\textmu}}
            {\hbox{\scriptsize\textmu}}
            {\hbox{\tiny\textmu}}%
      \else
        \textmu
      \fi
    }
end texpreamble

amove 0.05 9.5
tex "(a)"
amove 9.05 9.5
tex "(b)"
 
amove 0 2
box 7 7
begin graph 
 size 7 7
 fullsize 
 nobox
 xaxis min -1.2 max 1.2 off 
 yaxis min -1.2 max 1.2 off 
 d1 bigfile fluxxy.dat 
 d1 lstyle 1 color rgb255(48,80,248)
end graph

begin translate 7 0
begin scale 1 0.7

! graph box and ticks
amove 2 2 
box 6 10
amove 3.2 2 
rline 0 0.2 
amove 4.5 2 
rline 0 0.2 

! graph labels
amove 14.1 11.4 
amove 3.0 1.3  
tex "$B_{\mathrm{peak}}$"
amove 4.2 1.3  
tex "$\left\langle B \right\rangle $"

! line on graph
set color rgb255(255,13,13)
set lwidth 2*lw
amove 2 2 
rline 0.7 0 
rline 0 3.7 
rbezier 0.2 0.2 0.3 0.4 0.5 4.6 
rbezier 0.2 -5 0.6 -7 4.5 -7.7 
rline 0 -0.6 
rline 0.3 0

set color black

set lwidth lw
amove 4.7 0.2 
tex "$B$" 
amove 1.5 6.5
begin origin 
begin rotate 90 
tex "$p(B)$" 
end rotate 
end origin 

set color white 
amove 11.1 11.7 
box 1.2 -1.1 fill white 
set color black 
 
end scale
end translate

!arrows
set lwidth 2*lw
 
! lowest field
amove 9.6 4.6
rline -4.35 0.9 arrow both
! peak field
amove 10.1 7.8
rline -4.1 0.62 arrow both 
! highest field
amove 14.7 2.5
rline -8.6 1.55 arrow both