plot - How choose which column put on axis like label? -
i have csv file this:
10557,1925080,1236052,1210752,1182492 11254,3159084,2264460,2187584,2144416 11334,2348036,1540692,1504536,1458332 11456,1607704,993228,974676,960308 .....
i want create chart these data. want use first column x-axes label, , put other column different line inside chart. how can it?
this code
set terminal pngcairo enhanced font "arial,10" fontscale 2.0 size 1680, 1024 set size 1,1 set ylabel '[y]' set xlabel '[first column csv]' set datafile separator "," set autoscale fix set key top left set key box set output 'figure1.png' plot \ "figure1.csv" using 2 w l linewidth 3 lc rgb "black" title "second colum", \ "figure1.csv" using 3 w l linewidth 3 lc rgb "black" title "third colum", \ "figure1.csv" using 4 w l linewidth 3 dashtype 2 title "fourth colum", \ "figure1.csv" using 5 w l linewidth 3 dashtype 5 title "fifth colum"
to evenly spaced tics on x-axis labelled values first column use xticlabels
:
plot "figure.csv" using 0:2:xticlabels(1)
Comments
Post a Comment