Gnuplot internal error : STRING operator applied to undefined or non-STRING variable
Gnuplot internal error : STRING operator applied to undefined or non-STRING variable
我试图用 gnuplot 绘制一个 18 线图,所以我使用了下面的代码,它显示了非字符串变量错误。
plot for [num = 4560 : 5072 : 64] \
"graph_".num.".dat" using 1:4 with lines lw 2 title "".num.".fast", \
"graph_".num.".dat" using 1:2 with lines lw 2 title "".num.".slow"
replot
但是当我只使用一个时,它工作得很好。
我认为这可能是因为图例中的最大行数或其他原因。
如何在同一张图中绘制这 18 条线?
好的,我找到问题了,你必须设置两次循环,因为它们是不同的情节。
plot for [num = 4560 : 5072 : 64] \
"graphs/tam_".num.".dat" using 1:4 with lines lw 2 title "".num.".fast", \
for [num = 4560 : 5072 : 64] \
"graphs/tam_".num.".dat" using 1:2 with lines lw 2 title "".num.".slow"
replot
我试图用 gnuplot 绘制一个 18 线图,所以我使用了下面的代码,它显示了非字符串变量错误。
plot for [num = 4560 : 5072 : 64] \
"graph_".num.".dat" using 1:4 with lines lw 2 title "".num.".fast", \
"graph_".num.".dat" using 1:2 with lines lw 2 title "".num.".slow"
replot
但是当我只使用一个时,它工作得很好。 我认为这可能是因为图例中的最大行数或其他原因。 如何在同一张图中绘制这 18 条线?
好的,我找到问题了,你必须设置两次循环,因为它们是不同的情节。
plot for [num = 4560 : 5072 : 64] \
"graphs/tam_".num.".dat" using 1:4 with lines lw 2 title "".num.".fast", \
for [num = 4560 : 5072 : 64] \
"graphs/tam_".num.".dat" using 1:2 with lines lw 2 title "".num.".slow"
replot