|
From: Thomas S. <t.s...@fz...> - 2010-06-18 07:05:33
|
plot for [i=0:1] "graph.dat" using 1:2:-2 index i lc variable title columnheader Frazer Williams wrote: > > Hi, > > I generate data files consisting of x,y data for a number of different > times. > I would like gnuplot to plot the data for each of the times, along with a > title > that is something like "t=0.1". So far I have been unsuccessful. I would > appreciate suggestions. I can write the data file in any format that > works. > > I am putting the data for each time sequentially in the file, with two > blank > lines between data sets. I am putting a line like > > TIME "t=0.1" > > at the start of each set. In other words, the file looks like > > TIME "t=0.1" > 1 10 > 2 20 > 3 40 > > > TIME "t=0.2" > 1 20 > 2 30 > 3 53 > > and so forth. > > I have tried to plot it with > > plot "graph.dat" using 1:2:((column(-2)) lc variable title columnheader > > This gives me the first (t=0.1) plot, with the correct title, but the > remainder > of the sets are plotted but have no title. I get a similar result with > > set key autotitle columnhead > plot "graph.dat" using 1:2:((column(02)) lc variable > > I am using gnuplot 4.4, patchlevel 0. > > It seems this ought to be possible. Any help would be appreciated. > > Thanks. > > Frazer > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/Using-title-columnheader-tp28907621p28922457.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |