I am using the gnuplot scrip command set key autotitle columnhead
to make the lables for my data. The only issue is, the column head data is numeric and so it doesnt really mean much on its own.
Is there a way to add a fixed string to the autotitle, eg "Year " + columnhead
, or alternatively, give my key a title?
String concatenation using
.
operator withcolumnhead()
works in gnuplot v4.6 (documentation):Also, yes, you can set a title for the key instead, like this:
set key title 'f(x)'
.Input file
data.txt
used in this example: