P is for Practical | |
PerlMonks |
Adding text to a GD::Graph object...by Clownburner (Monk) |
on Jun 22, 2002 at 01:20 UTC ( [id://176429]=perlquestion: print w/replies, xml ) | Need Help?? |
Clownburner has asked for the wisdom of the Perl Monks concerning the following question:
I've been fiddling with GD::Graph and GD::Text all day, but this is eluding me. GD::Graph is easy enough to use, and I have it producing the graphs I want. But now I would like to add a small table of text at the bottom of the returned PNG graphic, and I can't quite figure that out. I've tried using the instantiated object as the target of a GD::Text::Wrap operation, but it returns the error "Not a GD::Image object". Puzzling, because the docs clearly say: So I did this (most of this code is samples from the man pages, I will be using this with real data once I get the output done properly): ..Which returns the error: Not a GD::Image object at ./graphtest.pl line 26 Any clues? I think I just don't know GD well enough to know the best way to do this. All help appreciated. "Non sequitur. Your facts are un-coordinated." - Nomad
Back to
Seekers of Perl Wisdom
|
|