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

! graph settings
xmn=0
xmx=7
xticks=2
xsubticks=1
ymn=0
ymx=1
yticks=1/3
ysubticks=1/6

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

! 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}
end texpreamble

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

begin graph
 size xsize ysize
 scale auto
 nobox
 
 let d1=1/3+2/3*(1-x^2)*exp(-(x^2/2)) step 0.01
 
 xtitle "\tex{$\Delta t$}"
 xaxis min xmn max xmx dticks xticks dsubticks xsubticks
 xaxis format "round 9 nozeroes prepend \tex{$ append $}"
 xticks length tt
 
 ytitle "\tex{$p_{z}(t)$}"
 yaxis min ymn max ymx dticks yticks dsubticks ysubticks
 !yaxis format "frac \tex{$ append $}"
 yplaces 0 1/3 2/3 1
 ynames \tex{$0$} \tex{$\frac{1}{3}$} \tex{$\frac{2}{3}$} \tex{$1$}
 yticks length tt
 
 d1 lstyle 1 lwidth glw color rgb255(255,13,13)
end graph