f(x,y)=sin(x)+cos(y)+sin(floor(x*cos(y)+y*sin(x)))
g(x,y)=f(x,y)>0 ? 0: 1
set pm3d map
unset colorbox
set palette gray
set size square
unset key
unset xtics
unset ytics
set samples 512
set isosamples 512,512
set term png tiny crop
R=10
set xrange[pi:R+pi]
set yrange[0-pi/2:-R-pi/2]
#
set out "g005.png"
splot g(x,y)
#
set out "f005.png"
splot f(x,y)
#
set palette color
set out "f005c.png"
splot f(x,y)