# set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "random_3" jsdir "." # set output 'random.3.js' set dummy u, v set format x "%3.2f" set format y "%3.2f" set format z "%3.2f" unset key set parametric set view 68, 28, 1, 1 set samples 50, 50 set isosamples 30, 30 set contour base set cntrlabel onecolor format '%8.3g' font '' start 5 interval 20 set hidden3d back offset 1 trianglepattern 3 undefined 1 altdiagonal bentover set cntrparam levels discrete 0.1 set style data lines set style function dots set xyplane relative 0 set ztics norangelimit 0.00000,0.05 set title "50 random samples from a 2D Gaussian PDF with\nunit variance, zero mean and no dependence" set urange [ -3.00000 : 3.00000 ] noreverse nowriteback set vrange [ -3.00000 : 3.00000 ] noreverse nowriteback set xrange [ -3.00000 : 3.00000 ] noreverse nowriteback set yrange [ -3.00000 : 3.00000 ] noreverse nowriteback set zrange [ -0.200000 : 0.200000 ] noreverse nowriteback tstring(n) = sprintf("%d random samples from a 2D Gaussian PDF with\nunit variance, zero mean and no dependence", n) nsamp = 50 i = 51 GPFUN_tstring = "tstring(n) = sprintf(\"%d random samples from a 2D Gaussian PDF with\\nunit variance, zero mean and no dependence\", n)" u = 0.0 ## Last datafile plotted: "$random" splot u,v,( 1/(2*pi) * exp(-0.5 * (u**2 + v**2)) ) with line lc rgb "black", $random using 1:2:(-0.2) with points pointtype 7 lc rgb "black"