|
From: <ton...@le...> - 2009-08-21 20:46:53
|
In another message I mentioned I made stacked charts. Here is my question about them.
It does not seem there is a way to stack charts. If you plot 2 bars, they will both start at 0
and one will overwrite part (or all of) the other one.
I had 5 fields to plot (say 2, 3, 4, 5, 6) with the x value as field 1 (1, 2, 3, ... 24). What I end up doing is
plot "file" using 1:($2+$3+$4+$5+$6) with boxes title "field5",
"file" using 1:($2+$3+$4+$5) with boxes title "field4",
"file" using 1:($2+$3+$4) with boxes title "field3",
"file" using 1:($2+$3) with boxes title "field2",
"file" using i:2 with boxes title "field1"
but it seems like there should be a simpler way to stack them than that. Is there?
|