|
From: Thomas S. <t.s...@fz...> - 2007-06-27 09:49:07
|
i don't see anything wrong. i tried to reproduce your problem: a file named 'ts.dat' has the content: 1 0.67 0.04 2 0.27 0.09 1 0.67 0.05 2 0.39 0.05 in gnuplot i executed the following commands: set xrange [0:3] plot 'ts.dat' index 0 us 1:2:3 w yerr, 'ts.dat' index 0 us 1:2 w lp plot 'ts.dat' index 1 us 1:2:3 w yerr, 'ts.dat' index 1 us 1:2 w lp and got two plots each with 2 points with errorbars and a connecting line. http://www.nabble.com/file/p11321444/ts1.gif http://www.nabble.com/file/p11321444/ts2.gif maybe you should reproduce this simple example. thomas Praedor Atrebates wrote: > > I am still playing around with gnuplot, trying to figure out how to use it > under my data requirements. > > Right now, I am trying to figure out how to plot two y data points, a > "before" > and "after" type of data vs the two-state x-axis required. > > The data acquisition software I use puts all the data into distinct > columns of > all the y data from "before" in the first column, all the y data from > "after" > in the second column, and the difference between the two in the third > column > (but this 3rd is dispensible) > > For each run I get 12 individual datapoints for "before" and 12 for > "after". > I determine the mean and stddev and then wish to plot this data as either > points with yerr, linespoints with yerr, or boxes (histogram) with yerr. > The > latest iteration of my attempt to accomplish this is to create a csv file > containing: > > 1 0.67 0.04 > 2 0.27 0.09 > > > 1 0.67 0.05 > 2 0.39 0.05 > > and so on. > > I THOUGHT I understood 'index' such that if I specified that I wanted to > plot > the top set of numbers (x:y:yerr) that all I had to do was: > > plot 'filename' index 0 using 1:2:3 with yerr pt 6 ps2 (or something > similar...though how does one specify yerr with linespoints or boxes - all > I > ever get when attempting either is 'conflicting with' or something along > that > line) > > Instead of what I expected from the above plot command, two points plotted > with error bars, one point at x=1, y=0.67, yerr=0.04 and the other at x=2, > y=0.27, yerr=0.09, I get ONE point at x=1, y=0.67, yerr=0.04. I have > tried > playing with index such as "index 0:0", no index, "index 0:1" etc, just to > try to get a consistent outcome. If I use no index, then I get a set of > points ONLY at x=1 and nothing else. > > What am I misunderstanding about index and why is the '2' in the second > row > ignored? In this plot, 1 means "before" and 2 means "after". > > patrick > > -- > Reichstag fire is to Hitler as 9/11 is to Bush > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/What-am-I-doing-wrong--tf3982927.html#a11321444 Sent from the Gnuplot - User mailing list archive at Nabble.com. |