Gnuplot: Colour proportional to y-value for builtin functions -


does know of easy way plot, say, sin(x), such colour changes depending on y-value?

set palette defined (0 "blue", 1 "green") plot sin(x) lc palette frac abs(sin(x)) 

also doesn't work!

any ideas?

thanks.

you can try use special filename '+' internally generates list of values (x values $1) , use values plot want using third column play palette.

set palette defined (0 "blue", 1 "green") plot '+' u ($1):(sin($1)):(abs(sin($1))) lines palette 

snapshoot of solution


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -