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: Changing th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 3378 of 3637
Post > Topic >>

Re: Changing the range for part of a plot

by philkime <Philip@[EMAIL PROTECTED] > Jun 24, 2008 at 02:27 PM

On Jun 24, 1:00=A0pm, merr...@[EMAIL PROTECTED]
 wrote:

> There are many ways. =A0The simplest is something like
>
> plot 'foo' using 0:($0 < 50 ? $3 : NaN) lc rgb "red", \
> =A0 =A0 =A0 =A0 '' using 0:($0 < 50 ? NaN : $3) lc rgb "green"

Perfect, thanks. I just hadn't read that bit of the manual closely
enough. I ended up doing:

plot 'foo' using 0:($0 < 50 ? $3 : NaN) lc rgb "red", \
        '' using 0:(($0 >=3D 51) && ($0 <=3D 100)) ? NaN : $3) lc rgb
"green"

otherwise the green line just overwrites the red one
 




 5 Posts in Topic:
Changing the range for part of a plot
philkime <Philip@[EMAI  2008-06-24 12:30:28 
Re: Changing the range for part of a plot
merritt@[EMAIL PROTECTED]  2008-06-24 13:00:34 
Re: Changing the range for part of a plot
philkime <Philip@[EMAI  2008-06-24 14:27:19 
Re: Changing the range for part of a plot
googoff@[EMAIL PROTECTED]  2008-06-25 04:21:38 
Re: Changing the range for part of a plot
philkime <Philip@[EMAI  2008-06-27 20:08:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Dec 5 6:13:10 CST 2008.