Menu

gnuplot v4.1, histograms, and floating boxes

Help
2005-05-06
2013-02-10
  • Andrew Caird

    Andrew Caird - 2005-05-06

    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

     
    • Andrew Caird

      Andrew Caird - 2005-05-06

      It turns out that you shouldn't use dashes ("-"), but 0s.

      --andrew

       
      • Hans-Bernhard Broeker

        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".

         

Log in to post a comment.