in reply to gd module ouput examples

If you want high quality output, perhaps a vector image would be more useful than a bitmapped image? You might find SVGGraph useful for outputting graphs in SVG, which you can easily convert (at various resolutions) to an appropriate format for your needs.