xefaso wrote:
> What's wrong with this code ?
>
> plot [0:10] sin(x) t '' w l lw 1 lt 1 lc rgb 'blue', \
> '-' t '' with labels textcolor rgb 'red'
> 5 0.5 "Label in red"
>
>
> With gnuplot 4.3 (development) I can see the sine function in blue and
> the label in red, which is ok. But in 4.2.3 and 4.2.4 the label is
> printed in black.
I think you just answered your own question.
Your commands are correct, but the feature exists only in the cvs version.
Only some of the code implementing new color options has been back-****ted
to 4.2. I guess this particular case is one that was never back-****ted.
However, there is a work-around.
Define a line style with the color you want:
set style line 1 lc rgb "blue"
And now issue the plot command using that linestyle
plot ... with labels textcolor ls 1
hope that helps
> I have re-compiled with configure option --enable-
> datastrings but the result is still in black.
>
> If I change the color specification substituting "rgb 'red'" by "lt 3"
> or something like that, it works fine again, but I prefere the rgb
> color specification, since this code should be automatically generated
> by the Maxima CAS routines.
>
> Thanks in advance.


|