Loading ...
Sorry, an error occurred while loading the content.

Bar Labeling Bug in 2.33 (fixed)

Expand Messages
  • schonbach
    Steve, I believe I have found (and corrected) another bug in 2.33. When using (horizontal) segment bars, the labels do not respect any horizontal adjustment
    Message 1 of 1 , Jul 10, 2006
    • 0 Attachment
      Steve,

      I believe I have found (and corrected) another bug in 2.33. When using (horizontal)
      segment bars, the labels do not respect any horizontal adjustment given.

      For example, with a hortizontal adjustment of -0.10, the labels should look like:
      http://www.markbach.com/stuff/ploticus/labels233patched.png

      However, they look like:
      http://www.markbach.com/stuff/ploticus/labels233stock.png

      The script used to generate these plots is:
      http://www.markbach.com/stuff/ploticus/labels.ploticus

      My patch for this is below.

      Regards,
      Mark

      ----------------------------------------------------------
      --- src/proc_bars.c 2006-07-10 19:39:17.000000000 +0000
      +++ src/proc_bars.c 2006-07-10 20:23:19.000000000 +0000
      @@ -807,11 +807,11 @@
      if( baseax == Y ) x += ((halfw+clustsep) * (ncluster-clusterpos)*2.0);
      else x += ((halfw+clustsep) * (clusterpos-1)*2.0);
      x += halfw;
      - if( lwl ) do_lwl( labelstr, x+adjx, Ea(Y,y)+adjy, Ea(Y,fval), align, reverse,
      lwl_mustfit );
      + if( lwl ) do_lwl( labelstr, x+adjx, Ea(Y,y)+adjy, Ea(Y,fval)+adjy, align,
      reverse, lwl_mustfit );
      else do_label( labelstr, x+adjx, laby, align, backbox, reverse );
      }
      else {
      - if( lwl ) do_lwl( labelstr, Ea(X,x)+adjx, Ea(Y,y)+adjy, Ea(Y,fval), align,
      reverse, lwl_mustfit );
      + if( lwl ) do_lwl( labelstr, Ea(X,x)+adjx, Ea(Y,y)+adjy, Ea(Y,fval)+adjy, align,
      reverse, lwl_mustfit );
      else do_label( labelstr, Ea(X,x)+adjx, laby, align, backbox, reverse );
      }
      }
      ----------------------------------------------------------
    Your message has been successfully submitted and would be delivered to recipients shortly.