Re: GDGraph hbars problem
From: Martien Verbruggen (mgjv_at_tradingpost.com.au)
Date: 07/17/04
- Previous message: Randal L. Schwartz: "Re: LWP::Simple mirror destroys links"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
|
- Previous message: Randal L. Schwartz: "Re: LWP::Simple mirror destroys links"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|