|
From: <pl...@pi...> - 2012-01-20 18:19:29
|
On 01/20/12 13:24, Peter Juhasz wrote: > On Fri, Jan 20, 2012 at 10:40 AM,<pl...@pi...> wrote: >> Hi, >> >> in experiment with new iteration feature I found it does not seem to be >> applied correctly (ie usefully) to the automatic title in the key >> >> plot for [date in "1881 1883"] "dataset-".date.".dat" >> >> unless I explicitly set a title both plots get an identical entry in the >> legend : "dataset-".date.".dat" >> >> This would seem to render the legend key entries somewhat useless. It >> also seems illogical that it expands the filename to be plotted but does >> not expand the entry in the legend. >> >> Is this an oversight or am I missing some cunningly useful feature? >> >> Best regards, Peter. > > The automatic title for data files is the file name plus the using > spec, as a string. > Perhaps it could be arranged that the iteration variable(s) (but not > other variables) are substituted in, but for now, you have to set the > title explicitly. > See the bright side of it: you are free to set a more informative > title, e.g. "Data for the year ".date". A.D.". I'd say that's useful, > even if not cunningly. > > Péter Juhász > Thanks, so bug rather than feature. Not a major problem but I thought I'd flag it. Oddly if I put the same thing as title it does get expanded. plot for [date in "1881 1883"] "dataset-".date.".dat" tit "dataset-".date.".dat" Just seems rather pointless (and verbose) repetition to achieve what it standard behaviour without iteration. Probably a detail that got missed. regards. |