Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > Re: color in la...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 3530 of 3631
Post > Topic >>

Re: color in labels

by sfeam <sfeam@[EMAIL PROTECTED] > Sep 30, 2008 at 09:02 PM

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.
 




 3 Posts in Topic:
color in labels
xefaso <xefaso@[EMAIL   2008-09-30 15:02:09 
Re: color in labels
sfeam <sfeam@[EMAIL PR  2008-09-30 21:02:26 
Re: color in labels
xefaso <xefaso@[EMAIL   2008-10-01 02:55:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 1:31:17 CST 2008.