|
From: Petr M. <mi...@ph...> - 2005-02-09 11:14:57
|
> Another thing:
> Why does gnuplot switch on the color palette when using an rgb-defined
> color? I think it should not do that, automatically. In this code,
I have removed this untentional behaviour by the enclosed patch. Do you like
it? Try to play with (un)commenting lines below:
#set label 1 "ahoj" at 0,1 tc palette frac 1
set label 1 "ahoj" at 0,-1 tc rgbcolor "#0000FF"
#set style line 2 lt palette frac 1
set style line 2 lt rgb "#0000FF"
plot x w l ls 2
Note:
splot x w l # ls 2
does not work due to a bug described below.
***
There seem to be one bug and one "inconsistency" in the current explicit
"rgb" functionality:
1. The splot acts as "with line palette" instead of a plot with blue lines:
set style line 1 lt rgb "#0000FF"
plot x*x with l ls 1
pause -1
splot x with l ls 1
2. I think that the rgb command should be the same for both label and
linetype, i.e. "rgb$color":
plot sin(x) lt rgbcolor "#FF00FF"
currently reports an error.
---
PM
|