If a plot title is given as a string-valued function, this expression is stored for evaluation after the plot is drawn and then cleared. However if the plot is never drawn because there are no valid data points, the stored expression is not cleared. If the following plot component does not specify a title, it inherits the unused expression which is at best wrong and at worst may cause an error failure because the expression is no longer valid.
Reproducer:
plot for [foo in "A B"] 'silver.dat' title foo if (0), 40-x/2
"title.bug" line 11: warning: Skipping data file with no valid points
"title.bug" line 11: warning: Skipping data file with no valid points
"title.bug" line 11: undefined variable: foo
Diff:
Diff:
Fixed in 6.1
Queued for 6.0.5