bash - plot only specific columns in gnuplot -
i have csv file show below , want plot s(on x axis) , b(axis).how generate plot of lines gnuplot.
test_image,original_size red-room.png,918394 q,s,b,s,c,r 0,1021763,0.121086,0.00001459,-11.26,-222.18 1,1061763,0.125086,0.00001459,-11.26,-222.18 2,1051763,0.121086,0.00001459,-11.26,-222.18 3,1041763,0.121086,0.00001459,-11.26,-222.18 4,986461,0.151573,0.00003318,-7.63,-211.67 5,955766,0.160869,0.00005782,-4.07,-201.37 basically need way tell gnuplot ignore first 3 rows , plot 2rd , 3rd column.
you need tell gnuplot fields delimited commas , should plot columns 2 , 3:
set datafile separator comma plot "data.csv" using 2:3 w lp gnuplot ignore first 3 lines automatically.
wiki
Comments
Post a Comment