|
From: Ethan A M. <merritt@u.washington.edu> - 2008-10-11 17:08:08
|
On Saturday 11 October 2008, James R. Van Zandt wrote: > > In the process, I discovered that the title in the key could come from > a column heading in the data file. That wasn't mentioned under "help > plot title", so I added a cross reference for that, too. I thought > about changing the syntax example from > > title "<title>" | notitle ["<ignored title>"] > to > title "<title>" | title <columnnumber> | notitle ["<ignored title>"] > > Should I? Unfortunately, the "title <columnno>" form is not quite interchangeable with the usual title command. As the code is currently written, it must come immediately after the 'using' clause. This could be considered a bug, but I don't know of an easy way to fix it. Anyhow, as it stands, that documentation change would be incorrect. e.g. plot 'foo' using 1:2 title 2 linetype 5 # OK plot 'foo' using 1:2 linetype 5 title "FOO" # OK plot 'foo' using 1:2 linetype 5 title 2 # fails -- Ethan A Merritt |