|
From: Robert H. <en...@no...> - 2005-08-17 13:33:22
|
> rgb(r,g,b)=int(r*65536)+int(g*256)+int(b)
> r(gray)=int(2.**24*gray)/65536/256.
> g(gray)=int(2.**24*gray)%65536/256/256.
> b(gray)=int(2.**24*gray)%256/256.
> set palette color model RGB functions r(gray),g(gray),b(gray)
> set cbrange [0:2.**24-1]
> unset colorbox
> splot 'colour-data.txt' using 1:2:3:(log($4)) \
> with points pointtype 6 pointsize variable lc("black"), \
> '' using 1:2:3:(rgb($1,$2,$3)) \
> with points pointtype 7 palette
Wow, that's pretty neat. I'm impressed.
> The point types are chosen to give hollow and filled circles
> respectively on the x11 terminal. Unfortunately it does not seem to be
> possible to have varying point sizes _and_ colours set independently of
> the z value.
No, Ethan is right on this one. Something like:
splot 'tmp.txt' using 1:2:3:(log($4)):(rgb($1,$2,$3)) \
with points pointtype 7 pointsize variable palette
works a treat.
If only gnuplot did a depth sort on the data before plotting it....
Rob
--
Robert Hart <en...@no...>
University of Nottingham
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
|