|
From: Christopher D. C. <ch...@cs...> - 2010-06-15 01:27:35
|
Hi -- I've been a long-time user of gnuplot, but am baffled at why it's consistently ignoring the first line from all my data input files? I am using the current release version, 4.4.0. My data file is: 50534 0.01 2048 4 2 1 42331740.77 50534 0.01 2048 4 2 1 42331740.77 50534 0.1 2048 4 2 1 148496233.59 50534 0.25 2048 4 2 1 183645787.30 50534 0.5 2048 4 2 1 206525421.53 50534 0.90 2048 4 2 1 242512603.37 My gnuplot command script is where I just want to plot the 2nd column as X and 7th column as Y. Any ideas -- my script is below?? Thanks, Chris ################################################### set border 3 set terminal postscript portrait size 8,8 font "Times,14" set size square set style data linespoints set key inside right top Left reverse enhanced autotitles nobox set key bmargin center horizontal Left reverse enhanced autotitles columnhead box set key samplen 4 spacing 1 width 0 height 0 set ylabel "Event Rate" set xlabel "Lookahead" set xrange [0.0:1.0] # set logscale x set xtics (0.01, 0.10, 0.25, 0.5, 0.90) # set xtics (1, 10, 25, 50, 90) ########################################################################################### # 1K event rate ########################################################################################### set output "event-rate-1K.eps" set title "1024 Processor Performance" plot "data-files/event-rate-1K-optimistic-no-stagger.data" using 2:7 title "Opt/No-Stag" |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2010-06-15 18:59:04
|
Christopher D. Carothers wrote: > Hi -- I've been a long-time user of gnuplot, but am baffled at > why it's consistently ignoring the first line from all my data input files? > > I am using the current release version, 4.4.0. > > My data file is: > > > 50534 0.01 2048 4 2 1 42331740.77 > 50534 0.01 2048 4 2 1 42331740.77 How can you possibly have managed to tell whether or not gnuplot has ignored the first data point from this file, given that it's exactly the same as the second? |
|
From: Christopher D. C. <ch...@cs...> - 2010-06-15 19:20:39
|
When I remove the copy of the first line, it disappears .. What you have it my hack to get it to appear .. just copy the first line twice in the data file .. It appears to have the same behavior on gnuplot 4.2.5 ... Any ideas?? Thanks, Chris 2010/6/15 Hans-Bernhard Bröker <HBB...@t-...> > Christopher D. Carothers wrote: > >> Hi -- I've been a long-time user of gnuplot, but am baffled at >> why it's consistently ignoring the first line from all my data input >> files? >> >> I am using the current release version, 4.4.0. >> >> My data file is: >> >> >> 50534 0.01 2048 4 2 1 42331740.77 >> 50534 0.01 2048 4 2 1 42331740.77 >> > > How can you possibly have managed to tell whether or not gnuplot has > ignored the first data point from this file, given that it's exactly the > same as the second? > > > |
|
From: Thomas S. <t.s...@fz...> - 2010-06-19 16:19:28
|
if you define set key autotitles columnhead the first data line is used for setting the title, so it's not used for plotting. you would have seen this if you would have let gnuplot set the title automatically, instead you specified an explicit title as option for the plot command. Christopher D. Carothers wrote: > > When I remove the copy of the first line, it disappears .. > > What you have it my hack to get it to appear .. just copy > the first line twice in the data file .. > > It appears to have the same behavior on gnuplot 4.2.5 ... > > Any ideas?? > > Thanks, > Chris > > 2010/6/15 Hans-Bernhard Bröker <HBB...@t-...> > >> Christopher D. Carothers wrote: >> >>> Hi -- I've been a long-time user of gnuplot, but am baffled at >>> why it's consistently ignoring the first line from all my data input >>> files? >>> >>> I am using the current release version, 4.4.0. >>> >>> My data file is: >>> >>> >>> 50534 0.01 2048 4 2 1 42331740.77 >>> 50534 0.01 2048 4 2 1 42331740.77 >>> >> >> How can you possibly have managed to tell whether or not gnuplot has >> ignored the first data point from this file, given that it's exactly the >> same as the second? >> >> >> > ------------------------------------------------------------------------------ > 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/Why-would-gnuplot-ignore-my-first-data-point-in-a-file--tp28894854p28935654.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Philipp K. J. <gn...@be...> - 2010-06-19 03:41:14
|
What is the smallest file that shows this behavior? For instance, if you have the file containing ONLY: 1 2 3 does it gobble up the 1 and the 3? I wonder whether your problem is something weird having to do w/ file formats - such as taking a file from one platform and trying to read it on another. Best, Ph. On Tuesday 15 June 2010 12:14:45 pm Christopher D. Carothers wrote: > When I remove the copy of the first line, it disappears .. > > What you have it my hack to get it to appear .. just copy > the first line twice in the data file .. > > It appears to have the same behavior on gnuplot 4.2.5 ... > > Any ideas?? > > Thanks, > Chris > > 2010/6/15 Hans-Bernhard Bröker <HBB...@t-...> > > > Christopher D. Carothers wrote: > >> Hi -- I've been a long-time user of gnuplot, but am baffled at > >> why it's consistently ignoring the first line from all my data input > >> files? > >> > >> I am using the current release version, 4.4.0. > >> > >> My data file is: > >> > >> > >> 50534 0.01 2048 4 2 1 42331740.77 > >> 50534 0.01 2048 4 2 1 42331740.77 > > > > How can you possibly have managed to tell whether or not gnuplot has > > ignored the first data point from this file, given that it's exactly the > > same as the second? > > --------------------------------------------------------------------------- >--- 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 |