Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Loops gnuplot循环结构中的单标题_Loops_Plot_Gnuplot - Fatal编程技术网

Loops gnuplot循环结构中的单标题

Loops gnuplot循环结构中的单标题,loops,plot,gnuplot,Loops,Plot,Gnuplot,当您同时使用for循环时,如何仅为一行指定一个标题 我有以下命令行: plot for [i=1:15] "test.txt" using (i-1):i title "test" lc rgb "red" ps 0.4 lw 0.5 但标题当然重复了15次。我想标题只出现一次。有没有一种方法可以避免这种情况而不使用标签?我已经找过了,但没什么有趣的 省略空标题。只需检查变量i: plot for [i=1:15] "test.txt" using (i-1):i title (i == 1

当您同时使用for循环时,如何仅为一行指定一个标题

我有以下命令行:

plot for [i=1:15] "test.txt" using (i-1):i title "test" lc rgb "red" ps 0.4 lw 0.5

但标题当然重复了15次。我想标题只出现一次。有没有一种方法可以避免这种情况而不使用标签?我已经找过了,但没什么有趣的

省略空标题。只需检查变量
i

plot for [i=1:15] "test.txt" using (i-1):i title (i == 1 ? "test" : "")