# Author: Ika
# Date: 08/14/2014
# Note that Inkscape was applied to address the display problem of Greek letters.
set term svg size 800,600 enhanced font 'Arial, 24'
set output 'qGaussian.svg'
set xrange [-4:4]
set yrange [0:0.8]
set xtics 2
set ytics 0.1
set xzeroaxis lt -1 lc rgb "black" lw 1
set yzeroaxis lt -1 lc rgb "black" lw 1
set multiplot
# Draw the qGaussian pdf
set key default
set line style 1 lt 2 lc rgb "gray" lw 1
# The following 4 functions have been simplified manually.
plot (1-x*x)*0.75*((abs(x)<1)?1:0) t "q=0, {/Symbol b}=1" lc rgb "red" lw 5,\
exp(-x*x)/(3.1415927**0.5) t "q=1, {/Symbol b}=1" lc rgb "black" lw 5,\
((1+(1-2)*(-x*x))**(1/(1-2)))/3.1415927 t "q=2, {/Symbol b}=1" lc rgb "blue" lw 5,\
(3**0.5)*((1+(1-2)*(-2*x*x))**(1/(1-2)))/3.1415927 t "q=2, {/Symbol b}=3" lc rgb "green" lw 5
unset multiplot
set term x11
set output