My question is very simple. Suppose I have a datafile with column headers, like as follows
first second
1 1
2 1
3 6
4 9
In gnuplot how do i make it so that the datafile is plotted using the column header as axis label? e.g. by calling
plot datafile using 1:2
i get the xaxis labeled first
and the yaxis labeled second
?
edit: I do know that I can use the column header as a key entry via set key auto title column head
, however that's not quite what I'm looking for.