|
From: Frazer <pf...@mo...> - 2010-06-16 20:30:23
|
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 |