2/20/2013

GNU plot conditional plotting


($1 <=3  ? $2 : 1/0)
It means “if the current number in the first column ($1) is less than 3, use the second column ($2), otherwise draw nothing”.


plot the first two columns only when the third one equals zero. Then you can try this:
plot '1.dat' using 1:($3==0?$2:1/0)

没有评论: