I want to plot m*n
matrix, each element of which is an rgb
triple, like in the following gnuplot code snippet (rgb matrix of 3*3
):
$cross << EODcross
255 0 0 0 0 0 255 0 0
0 0 0 0 0 0 0 0 0
255 0 0 0 0 0 255 0 0
EODcross
Black cross on red background. I can change delimiters between columns and color components, if needed.
Can I achieve the desired avoiding set palette rgbformulae i,j,k
and directly using $cross
data? Something like:
plot '$cross' matrix with image rgb
If not, I can pass 24bit-wide integers (of course, in textual representation, i.e. precalculated and converted to text r + 256 * (g + 256 * b)
or b + 256 * (g + 256 * r)
value). How should i,j,k
triple looks like to correctly map rgb
value represented in mentioned form to palette color space?