# 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 'arrow'
set title "mu=$0, sigma=$1"
load 'plotdat1'
load 'noarrow'
set title ""
load 'midmplot'
load 'surfacegrid'
set arrow 10 from mu,sigma,0.00001 to mu,sigma,l1(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,l1(mu,sigma) nohead ls livecol
set noarrow 10
set nomultiplot
pause -1 'ready'

