The PyXPlot logo

PyXPlot

Examples - Sinc Function


A surface showing the radial sinc function.

Script

set numerics complex
set xlabel "$x$"
set ylabel "$y$"
set zlabel "$z$"
set xformat "%s$\pi$"%(x/pi)
set yformat "%s$\pi$"%(y/pi)
set xtics 3*pi ; set mxtics pi
set ytics 3*pi ; set mytics pi
set ztics 
set key below
set size 8 square
set grid
plot 3d [-6*pi:6*pi][-6*pi:6*pi][-0.3:1] sinc(hypot(x,y)) \
     with surface col black \
     fillcol hsb(atan2($1,$2)/(2*pi)+0.5):hypot($1,$2)/30+0.2:($3*0.5+0.5)

      

Notes

A surface showing the radial sinc function.