GD::Graph can't make 2D data plots. It will only take a series of Y-values, and display them left-to-right in the order given. There's no way, for instance, to make a plot in which there are 2 points with the same X value - at least, no way I can discover.