|
From: Mahmood N. <nt_...@ya...> - 2014-09-11 05:33:17
|
I tried with your example, but still all points are black. I will send a screenshot to you. Regards, Mahmood On Thursday, September 11, 2014 1:12 AM, Tait <gnu...@t4...> wrote: As a string, it's hex: "... linecolor rgbcolor '#30a0f0'". As a bare number or linecolor variable, it's a packed tuple (or quad, when alpha-channel is involved) as an integer: 8 bits of red, 8 bits of green, then 8 bits of blue. Creating that number is what the rgb function does in the example I used. Whether you represent that integer in decimal, hexadecimal, or octal is of no matter to gnuplot. Pure blue would be 255 or 0xff; pure green 255 << 8, or 65280 or 0xff00; and pure red 255 << 16, or 16711680 or 0xff0000. A 50% gray would be 8421504 or 0x808080. Your 0xaabbcc... example below works for me. Note that with only two points, the default auto-range will put either point on the extreme of the graph, and one is gray and the other black, so it'd be easy to overlook that it's actually working. To make it more obvious, try more points/colors: unset key plot '-' using 0:2:1 linecolor rgb variable pointtype 5 pointsize 3 0xaabbcc 10 0xee0000 13 0x00aa00 16 0x222299 18 0x0a0304 20 e The 400 and 800 values as colors will both be dark blues, and perhaps mistakable for black if one doesn't look carefully. |