Re: GDGraph hbars problem

From: Martien Verbruggen (mgjv_at_tradingpost.com.au)
Date: 07/17/04

  • Next message: Michael Piotrowski: "ANNOUNCE: Text::Iconv 1.4"
    Date: Sat, 17 Jul 2004 12:14:07 +1000
    
    

    On Thu, 24 Jun 2004 22:15:11 GMT,
            Bricklen <bricklen-rem@yahoo.comz> wrote:
    > Bricklen wrote:

    >> I have a graph that works fine as a bars graph, but then doesn't display
    >> the bars when it is converted to an hbars graph. If I change the dataset
    >> then it will work most times.

    > Just to add a bit of a sloppy solution to this question, it turns out
    > that this line:
    > $self->{graph}->filledRectangle($l, $t, $r, $b, $dsci) if defined $dsci;
    > in GDGraph 1.43, bars.pm (approx. line 200), will have the $t and $b
    > values reversed for the (occasional) smaller results sets.

    > Not all small sets, just some. I couldn't determine what was causing
    > this, because the different sets of data being passed in were all
    > relatively the same.
    > The only fix that I could come up with was to add a handler that just
    > reversed the order of those two variables ($t,$b) if the $b<$t,
    > eg.
    > $self->{graph}->filledRectangle($l, $b, $r, $t, $dsci) if defined $dsci;
    >
    > If anyone could shed more light on this, that would be great.

    I just returned from holidays, which is why I didn't respond earlier.

    Could you send me a data set and program that does what you say it does:
    i.e. plot fine for bars, but not for hbars? I will then have a look at
    what this could be.

    If you could also send me a set that is "relatively the same" but
    doesn't show this problem, that'd be much appreciated.

    Thanks,
    Martien

    PS. I won't have access to my regular email account until Monday, and I
    have quite some work to catch up with, so don't expect a speedy reply.

    -- 
                            | 
    Martien Verbruggen      | I used to have a Heisenbergmobile. Every time
                            | I looked at the speedometer, I got lost.
                            | 
    

  • Next message: Michael Piotrowski: "ANNOUNCE: Text::Iconv 1.4"

    Relevant Pages

    • How do I plot error bars on 3D graphs?
      ... I was wondering if anyone knew if it was possible to display standard error ... bars in 3-D graphs in Exel. ... My data set is more easily interpreted in the 3D ... but have been unable to plot the error bars. ...
      (microsoft.public.excel.charting)
    • Variable width bar plots
      ... I have a data set that I would like to plot with variable ... width bars rather than fixed width bars. ... If anyone knows how to make such a plot I'd be grateful. ...
      (comp.soft-sys.matlab)