From: chedly g. <che...@gm...> - 2006-01-26 15:47:21
|
> > thank you > the behavior of the curve changes every 10 seconds (for example), so to > show this change of behavior, i want to change the color of the curve eve= ry > 10 seconds. i can't do it manually as *Tammo Heeren* said (in the plot > command) or as * Hans-Bernhard Broeker* said (by dividing the file in > many other files) because i will have tens of files. > i will try to change the backgroung color every 10 seconds. > > On 1/26/06, Tammo Heeren <Pu...@ta... > wrote: > > > > How about you split the curve up into section? > > Try this: > > > > f(x) =3D sin(x) > > set xrange [0:pi] > > plot x<=3Dpi/4 ? f(x) : 1/0 with lines lt 0,\ > > x>pi/4 && x<=3Dpi/2 ? f(x) : 1/0 with lines lt 1,\ > > x>pi/2 && x<=3D3*pi/4 ? f(x) : 1/0 with lines lt 2,\ > > x>3*pi/4 && x<=3Dpi ? f(x) : 1/0 with lines lt 3 > > > > This should get you started. > > > > Tammo > > > > > > > > On 26 Jan 2006 at 4:37, chedly ghedira wrote: > > > > > > > > Hello, > > > i want to plot a curve with different colors. For example, if the > > Xrange is [0:500], i want that > > > between [0:100] the curve is in red (for example), between [100:200] > > the curve is in green, > > > between [200:300] the curve is in red again... and so on. > > > How can i do this? > > > thank you > > > > > > > |