Gnuplot 在循环中更改标题

Gnuplot 在循环中更改标题,gnuplot,Gnuplot,我使用的是gnuplot 5.0,我有一个数据集,我想用它来绘图 key1 = 'Some title with multiple words' key2 = 'Some other descriptive title ' key3 = '...and a third title' plot for[i=1:3] datafile index i-1 using 1:2 with lines title eval('key'.i) 这是不工作,但我想有一个不同的字符串与多个字的每条曲线。使用w

我使用的是gnuplot 5.0,我有一个数据集,我想用它来绘图

key1 = 'Some title with multiple words'
key2 = 'Some other descriptive title '
key3 = '...and a third title'
plot for[i=1:3] datafile index i-1 using 1:2 with lines title eval('key'.i)

这是不工作,但我想有一个不同的字符串与多个字的每条曲线。使用
words()
word()
将不起作用。那么,如何更改命令绘图中的标题呢?

Gnuplot 5.0引入了一些有限的支持,可以将带引号的字符串与
word
words
一起使用:

keys = '"Some title with multiple words" '.\
       '"Some other descriptive title" '.\
       '"...and a third title"'
plot for[i=1:3] i*x with lines title word(keys, i)