# set terminal pngcairo background "#ffffff" enhanced font "arial,8" fontscale 1.0 size 540, 360 # set output 'rgb_variable.8.png' set bar 1.000000 front set style circle radius graph 0.02, first 0.00000, 0.00000 set style ellipse size graph 0.05, 0.03, first 0.00000 angle 0 units xy unset key set style textbox transparent margins 1.0, 1.0 border unset logscale set view 63, 58, 1, 1.4 set isosamples 40, 40 set xyplane at 0 unset xtics unset ytics set ztics norangelimit set ztics ("0" 0.00000) unset paxis 1 tics unset paxis 2 tics unset paxis 3 tics unset paxis 4 tics unset paxis 5 tics unset paxis 6 tics unset paxis 7 tics set title "HSV coloring of pm3d surface\n(V=1)" set xlabel "H" set xrange [ 0.0100000 : 1.00000 ] noreverse nowriteback set ylabel "S" set yrange [ 0.0100000 : 1.00000 ] noreverse nowriteback set zrange [ 0.00000 : 1.00000 ] noreverse nowriteback set paxis 1 range [ * : * ] noreverse nowriteback set paxis 2 range [ * : * ] noreverse nowriteback set paxis 3 range [ * : * ] noreverse nowriteback set paxis 4 range [ * : * ] noreverse nowriteback set paxis 5 range [ * : * ] noreverse nowriteback set paxis 6 range [ * : * ] noreverse nowriteback set paxis 7 range [ * : * ] noreverse nowriteback set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front noinvert bdefault unset colorbox rgb(r,g,b) = int(r)*65536 + int(g)*256 + int(b) xrgb(r,g,b) = (g-b)/255. * cos(30.) yrgb(r,g,b) = r/255. - (g+b)/255. * sin(30.) RGB(R,G,B) = int(255.*R) * 2**16 + int(255.*G) * 2**8 + int(255.*B) f(x,y) = 0.4 + sin(sqrt(100.*x**2+100.*y**2)) / (1.5*sqrt(100.*x**2+100.*y**2)) GPFUN_rgb = "rgb(r,g,b) = int(r)*65536 + int(g)*256 + int(b)" GPFUN_xrgb = "xrgb(r,g,b) = (g-b)/255. * cos(30.)" GPFUN_yrgb = "yrgb(r,g,b) = r/255. - (g+b)/255. * sin(30.)" x = 0.0 GPFUN_RGB = "RGB(R,G,B) = int(255.*R) * 2**16 + int(255.*G) * 2**8 + int(255.*B)" GPFUN_f = "f(x,y) = 0.4 + sin(sqrt(100.*x**2+100.*y**2)) / (1.5*sqrt(100.*x**2+100.*y**2))" ## Last datafile plotted: "++" splot '++' using 1:2:(f($1,$2)):(hsv2rgb($1,$2,1.0)) with pm3d lc rgb variable