in reply to Multiple data sets on one gd::graph

What do you mean "lined up". Do you mean you want to do some sort of curve fit so that you can interpolate points and calculate a Y value for specific X values? Do you mean that you want the same X scaling for each line? What is the graph supposed to show (how is it expected to be used)?


DWIM is Perl's answer to Gödel
  • Comment on Re: Multiple data sets on one gd::graph

Replies are listed 'Best First'.
Re^2: Multiple data sets on one gd::graph
by badpearl (Initiate) on Aug 09, 2007 at 12:42 UTC
    Apols for lack of clarity

    By 'lined-up' I mean consistent Y axis, for both lines (green and red), no over-writing axis titles, or double labelling on y-axis and consistent origin. But I would like to have two sets of x axis labels (one red, one green) to show that there are two sets of years (one 19th century, one 20th century). Basically this is a popultion graph, with one line for each century. Drawing the lines themseles seems fine, its the axis labelling that's a problem.

    Thanks!

      I'd be inclined to draw just one set of year labeling using just the tens digits for the year and provide a key for the century line colors. If the users really need the precise data it should be provided in an accompanying table - the graph really just shows the trends.


      DWIM is Perl's answer to Gödel