# set terminal png transparent nocrop enhanced font arial 8 size 420,320 # set output 'rgb_variable.3.png' unset border set label 99 "" at 0, 0, 0 left norotate back nopoint offset character 0, 0, 0 set xzeroaxis linetype -1 linecolor rgb "red" linewidth 2.000 set yzeroaxis linetype -1 linecolor rgb "green" linewidth 2.000 set zzeroaxis linetype -1 linecolor rgb "blue" linewidth 2.000 set xyplane at 0 set xtics axis in scale 1,0.5 nomirror norotate offset character 0, 0, 0 autofreq set ytics axis in scale 1,0.5 nomirror norotate offset character 0, 0, 0 autofreq set ztics axis in scale 1,0.5 nomirror norotate offset character 0, 0, 0 autofreq set xlabel "Red" set xlabel offset character 0, 0, 0 font "" textcolor rgb "red" norotate set xrange [ 0.00000 : 255.000 ] noreverse nowriteback set ylabel "Green" set ylabel offset character 0, 0, 0 font "" textcolor rgb "green" rotate by 90 set yrange [ 0.00000 : 255.000 ] noreverse nowriteback set zlabel "Blue" set zlabel offset character 0, 0, 0 font "" textcolor rgb "blue" norotate set zrange [ 0.00000 : 255.000 ] noreverse nowriteback rgb(r,g,b) = int(r)*65536 + int(g)*256 + int(b) 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"