Gnuplot tricks

Conditional plotting

Solution:

set value to (1/0)

Example:

plot sin(x) only for positive values:

plot sin(x)>0?sin(x):(1/0)

Comments are closed.