using 2
means that gnuplot will use the second column from the file for the data it draws. If you draw x data versus y data, the plot data using 1:2
command if the x data is in column 1 and the y data is in column 2. plot using 2
will display the data from column 2 along the y axis and for each data point, x coordinate will be increased by 1.
You will notice that the green and red bars are the same size: they both use column 2. If you do not want the first (red) bar to be displayed, you can change the chart command to
plot 'test.dat' using 2:xtic(1) title 'Col1', '' using 3 title 'Col2', '' using 4 title 'Col3'
With this command, the xtic shortcuts will remain unchanged, and the first bar will no longer be there. Note that the colors for the data will be changed using this command, since the first that is drawn will be red, the second will be green and the third will be blue.
source share