|
From: Mojca M. <moj...@gm...> - 2009-03-12 05:23:56
|
On Mon, Mar 9, 2009 at 17:46, Juergen Wieferink wrote: > >> May I request adding a simple example like this (using for loop and >> "title column()") to >> http://gnuplot.sourceforge.net/demo/datastrings.html >> ? > > From the code, > > plot ... title column(<int expr>) > > does more or less the same as > > plot ... title <int const> > > The command > > plot ... title column > > without following "(" tries to guess which column to fetch data > from, which in this case might be exactly what you want. I do not > like that "column" has two different meanings. > > As soon as it is documented or in the demos, this can never be > changed. One more question. I know that the order of reading parameters is a pretty sensitive issue in gnuplot, but it nevertheless confused me that plot for [n=2:5] 'data.dat' using 1:n title column with lines plot for [n=2:5] 'data.dat' using 1:n with lines title "something" both work while plot for [n=2:5] 'data.dat' using 1:n with lines title column fails. Is that behaviour "compatible" with previous and future versions of gnuplot? Also, I miss a bit two things. The first one being something like set format title "$a=%.2f$" or some other way to transform title. Let's say that legend (first line in data file) looks like 0.001 0.1 1 1.5 2 2.5 and that I want to use the third to sixth column and generate $a=1,0$ $a=1,5$ $a=2,0$ $a=2,5$ as the title for some LaTeX terminal. I know that I can change the label myself, but I cannot control the data and should make copies of it first. I got used to be able to change set format y so much that I sometimes want to misuse way it above its limits. The second question: is there a way to say something like for [n=2:4,6,8:20,25,30:40] ? (I know that I can construct it myself from several commands, but the for loop is really practical for long expressions that repeat themselves anyway.) Thanks a lot, Mojca |