String 向gnuplot自动字幕添加字符串

String 向gnuplot自动字幕添加字符串,string,key,gnuplot,title,String,Key,Gnuplot,Title,我正在使用gnuplot scrip命令set key autotitle columnhead为我的数据制作标签。唯一的问题是,列标题数据是数字的,因此它本身并没有多大意义 有没有一种方法可以将固定字符串添加到自动字幕中,例如“Year”+columnhead,或者为我的键指定一个标题?使用运算符和columnhead()进行字符串连接在gnuplot v4.6()中工作: 另外,您可以改为设置密钥标题,如下所示:set key title'f(x) 本例中使用的输入文件data.txt:

我正在使用gnuplot scrip命令
set key autotitle columnhead
为我的数据制作标签。唯一的问题是,列标题数据是数字的,因此它本身并没有多大意义


有没有一种方法可以将固定字符串添加到自动字幕中,例如
“Year”+columnhead
,或者为我的键指定一个标题?

使用
运算符和
columnhead()进行字符串连接
在gnuplot v4.6()中工作:

另外,您可以改为设置密钥标题,如下所示:
set key title'f(x)

本例中使用的输入文件
data.txt

x 100x x^3 2^x
1 100 1 2
2 200 8 4
3 300 27 8
4 400 64 16
5 500 125 32
6 600 216 64
7 700 343 128
8 800 512 256
9 900 729 512
10 1000 1000 1024
x 100x x^3 2^x
1 100 1 2
2 200 8 4
3 300 27 8
4 400 64 16
5 500 125 32
6 600 216 64
7 700 343 128
8 800 512 256
9 900 729 512
10 1000 1000 1024