I am still playing around with gnuplot, trying to figure out how to use it=
=20
under my data requirements. =20
Right now, I am trying to figure out how to plot two y data points, a "befo=
re"=20
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=20
all the y data from "before" in the first column, all the y data from "afte=
r"=20
in the second column, and the difference between the two in the third colum=
n=20
(but this 3rd is dispensible)
=46or each run I get 12 individual datapoints for "before" and 12 for "afte=
r". =20
I determine the mean and stddev and then wish to plot this data as either=20
points with yerr, linespoints with yerr, or boxes (histogram) with yerr. T=
he=20
latest iteration of my attempt to accomplish this is to create a csv file=20
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 pl=
ot=20
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=20
similar...though how does one specify yerr with linespoints or boxes - all =
I=20
ever get when attempting either is 'conflicting with' or something along th=
at=20
line)
Instead of what I expected from the above plot command, two points plotted=
=20
with error bars, one point at x=3D1, y=3D0.67, yerr=3D0.04 and the other at=
x=3D2,=20
y=3D0.27, yerr=3D0.09, I get ONE point at x=3D1, y=3D0.67, yerr=3D0.04. I =
have tried=20
playing with index such as "index 0:0", no index, "index 0:1" etc, just to=
=20
try to get a consistent outcome. If I use no index, then I get a set of=20
points ONLY at x=3D1 and nothing else.
What am I misunderstanding about index and why is the '2' in the second row=
=20
ignored? In this plot, 1 means "before" and 2 means "after". =20
patrick
=2D-=20
Reichstag fire is to Hitler as 9/11 is to Bush
|