对于在gnuplot中显示键一次的循环

时间:2016-09-23 04:55:06

标签: gnuplot

有人知道如何只在gnuplot中的for循环中每次都显示一次键吗?

e.g。

filename(n) = sprintf("band%d", n)
plot for [i=0:9] filename(i) using (\$1):(\$2-$vbm1) w l lt 1 lw 3 lc rgb "sienna1"

在这种情况下,为for循环中的每次运行生成filename(i) using (\$1):(\$2-$vbm1)中写入的100个密钥。

1 个答案:

答案 0 :(得分:3)

您可以使用条件显式标题,例如:

plot for [i=0:9] filename(i) ... w l t (i==0?'some title':'')

这只会显示filename(0)

的关键字
相关问题