#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "rgb_variable_3" jsdir "." # set output 'rgb_variable.3.js' set border -1 front lt black linewidth 1.000 dashtype solid set angles degrees set style data lines set xyplane relative 0 set xtics border in scale 1,0.5 nomirror norotate autojustify set ytics border in scale 1,0.5 nomirror norotate autojustify set title "Both RGB color information\n and point size controlled by input" set xlabel "Red" set xlabel font "" textcolor rgb "red" norotate set xrange [ 0.00000 : 255.000 ] noreverse writeback set x2range [ * : * ] noreverse writeback set ylabel "Green" set ylabel font "" textcolor rgb "green" rotate set yrange [ 0.00000 : 255.000 ] noreverse writeback set y2range [ * : * ] noreverse writeback set zlabel "Blue" set zlabel font "" textcolor rgb "blue" norotate set zrange [ 0.00000 : 255.000 ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set lmargin 5 set bmargin 2 set rmargin 5 set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault 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.) ## Last datafile plotted: "rgb_variable.dat" splot 'rgb_variable.dat' using 1:2:3:(rgb($1,$2,$3)) with points pt 7 ps 4 lc rgb variable, '' using 1:2:3:(sprintf("0x%x",rgb($1,$2,$3))) with labels left offset 1 notitle