I can't get gnuplot to make a plot with error bars when my x values are non-numeric.
For an example "data.dat":
day col1 col2 MONDAY 12 4 TUESDAY 10 3 WEDNESDAY 9 2 THURSDAY 11 3 FRIDAY 9 2 SATURDAY 12 3 SUNDAY 8 2
I've tried variants of
plot "./data.dat" using 2:3:xtic(1) with yerrorlines
plot "./data.dat" using 2:3:xtic(1) with yerrorlines
plot "./data.dat" using 1:2:3 with yerrorlines
And get back either Not enough columns for this style or
warning: Skipping data file with no valid points
x range is invalid
What would the plot command be to plot (day,col1,col2) => (x,y,y_err)?
with yerrorlinesthere is an implicit column 0 whenplotdoesn't have enough columns? Odd... – Andrew Wood Apr 19 '11 at 12:53