I'm using gnuplot v4.1 built from CVS and am getting parts of the stacked histogram boxes floating above empty space.
A sample data file is:
Year a b c d e f g
2006 64 38 12 14 32 - 10
2007 64 38 12 14 32 - 12
2008 64 0 12 0 64 8 12
and the commands I'm using are:
gnuplot> set style data histogram
gnuplot> set style histogram rowstacked
gnuplot> set style fill solid border -1
gnuplot> plot newhistogram "New Histogram", \
> 'tl2' using 2:xtic(1) t 2 ,\
> '' u 3 t 3, '' u 4 t 4, '' u 5 t 5, '' u 6 t 6, '' u 7 t 7, '' u 8 t 8
Am I doing something wrong? Or is this a bug?
Thanks a lot.
--andrew
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could use dashes, too, but then you'ld have to *tell* gnuplot about that, and be a bit lucky that this somewhat obscure part of the code actually does what you wanted, rather than what it saw fit. See "help missing".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using gnuplot v4.1 built from CVS and am getting parts of the stacked histogram boxes floating above empty space.
A sample data file is:
Year a b c d e f g
2006 64 38 12 14 32 - 10
2007 64 38 12 14 32 - 12
2008 64 0 12 0 64 8 12
and the commands I'm using are:
gnuplot> set style data histogram
gnuplot> set style histogram rowstacked
gnuplot> set style fill solid border -1
gnuplot> plot newhistogram "New Histogram", \ > 'tl2' using 2:xtic(1) t 2 ,\ > '' u 3 t 3, '' u 4 t 4, '' u 5 t 5, '' u 6 t 6, '' u 7 t 7, '' u 8 t 8
Am I doing something wrong? Or is this a bug?
Thanks a lot.
--andrew
It turns out that you shouldn't use dashes ("-"), but 0s.
--andrew
You could use dashes, too, but then you'ld have to *tell* gnuplot about that, and be a bit lucky that this somewhat obscure part of the code actually does what you wanted, rather than what it saw fit. See "help missing".