# set terminal pngcairo  background "#ffffff" enhanced font "arial,8" fontscale 1.0 size 540, 360 
# set output 'rgb_variable.5.png'
unset border
set angles degrees
set label 99 "" at 0.00000, 0.00000, 0.00000 left norotate back nopoint
set style data lines
set xzeroaxis linecolor rgb "red"  linewidth 2.000 dashtype solid
set yzeroaxis linecolor rgb "green"  linewidth 2.000 dashtype solid
set zzeroaxis linecolor rgb "blue"  linewidth 2.000 dashtype solid
set xyplane at 0
set xtics axis in scale 1,0.5 nomirror norotate  autojustify
set ytics axis in scale 1,0.5 nomirror norotate  autojustify
set ztics axis 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
set ylabel "Green" 
set ylabel  font "" textcolor rgb "green"  rotate
set yrange [ 0.00000 : 255.000 ] noreverse
set zlabel "Blue" 
set zlabel  font "" textcolor rgb "blue"  norotate
set zrange [ 0.00000 : 255.000 ] noreverse
set lmargin  5
set bmargin  2
set rmargin  5
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.)
NO_ANIMATION = 1
## Last datafile plotted: "rgb_variable.dat"
splot 'rgb_variable.dat' using 1:2:3:(5*rand(0)):(rgb($1,$2,$3)) with points pt 7 ps variable lc rgb variable       title "variable pointsize and rgb color computed from coords"