gnuplot conditional plotting: plot col A:col B if col C == x -
how can in gnuplot:
plot "test.csv" using 1:2 if value_in_column_3 == 80.0 it should select rows column 3 == 80.0 , ignore other rows (it should not plot 0 other rows, ignore them)
thanks in advance.
consider following dataset (1.dat),
1 0.8 0 2 0.6 0 3 0.9 1 4 1.1 0 5 0.7 0 6 0.6 1 where want plot first 2 columns when third 1 equals zero. can try this:
plot '1.dat' using 1:($3==0?$2:1/0) (credit markjoe on gnuplot mailing-list.)
Comments
Post a Comment