# called by explainlikelihood
# use arrow number 10 to ensure the arrow is removed 
#  immediately
mu=$0
sigma=$1
arrownum=$2
livecol=$3
deadcol=$4

# demo one Gaussian only
load 'startmplot'
load 'arrows'
set title "mu=$0, sigma=$1"
load 'plotdat'
load 'noarrows'
set title ""
load 'midmplot'
load 'surfacegrid'
set zrange [0:0.05]
set ztics auto
set arrow 10 from mu,sigma,0.00001 to mu,sigma,l(mu,sigma) nohead ls  deadcol
splot 'dat' u (-10):(1000):1 w l
set xlabel ""
set ylabel ""
set arrow arrownum from mu,sigma,0.00001 to mu,sigma,l(mu,sigma) nohead ls livecol 
set noarrow 10
set nomultiplot
pause -1 'ready'

