Re: GDGraph hbars problem

From: Bricklen (bricklen-rem_at_yahoo.comz)
Date: 06/25/04


Date: Thu, 24 Jun 2004 22:15:11 GMT

Bricklen wrote:

> Has anyone had any problems with GD::Graph 1.43 hbars graphs?
> 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.
> I still haven't found a correlation between what will make it work, and
> what won't, although it _is_ consistent.
>
> Happens on both perl 5.8 and 5.6
>
> If you need any more details, I'll be happy to provide them.

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.

Cheers,

Bricklen



Relevant Pages

  • Re: Mike: Restating your explanation
    ... and in software scale my data to fit the physical limits of the display ... then as soon as you change the size of the object your graph ... four quadrant graph of course you usually want the opposite of that. ...
    (microsoft.public.vb.general.discussion)
  • Re: Mike: One last explanation, I hope!
    ... and in software scale my data to fit the physical limits of the display ... then as soon as you change the size of the object your graph ... Dim xmin As Single, xmax As Single ... four quadrant graph of course you usually want the opposite of that. ...
    (microsoft.public.vb.general.discussion)
  • RE: Regression results
    ... What I am recording are weekly closes of stocks and the precision displayed ... polynomials, assuming that the x-values themselves are really accurate enough ... Your mention of "the formula provided by the graph" raises another issue: ... the equation and change the numeric format to display scientific notation ...
    (microsoft.public.excel.programming)
  • Re: Horizontal ScrollBar+ PictureBox + Flickering (how to stop flickering?)
    ... to true has no effect - namely, 'scrolling the graph' still ... The reason the Autoredraw method works is because your entire "clearing and drawing code" runs in a closed loop for each specific "frame", and the VB Autoredraw method will not actually display the new frame until that "closed loop" code has finished. ...
    (microsoft.public.vb.general.discussion)
  • Re: graph visualization software
    ... > the graph visualization. ... and also with the layout on a board or semiconductor. ... > between the visualization and the rest of the system ... > - Add numerous attributes to edges/vertices for the display ...
    (comp.compilers)