Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I was wondering if anyone could tell me how to make gridlines on GDChart, as well as make the Y-Axis logarithmic. Thanks.

Replies are listed 'Best First'.
Re: Gridlines and Logarithmic on GD::Chart
by swampyankee (Parson) on Feb 19, 2009 at 14:16 UTC

    After browsing the code, it appears that neither GD::Chart nor GD::Graph supports log axes. Indeed, there is a request for just this in the GD::Graph bug list. GD::Chart does not seem to have been updated for about five years; I wonder if it's no longer being worked on.

    One workaround would be to convert your (x,y) pairs to (x,log10(y)), but this won't look quite the same as would plotting a logarithmic axis, like you would get plotting on semi-log paper..


    Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

Re: Gridlines and Logarithmic on GD::Chart
by hda (Chaplain) on Feb 19, 2009 at 14:36 UTC
      I am using Windows XP and was reading that GD::Chart::Gnuplot may not be suited for Windows machines. Am I right on that? or has bugs been fixed?