Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

SVG in GD::Graph?

by chinman (Monk)
on Feb 08, 2003 at 17:54 UTC ( #233750=perlquestion: print w/replies, xml ) Need Help??

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

Fellow clergypersons,

I've been using GD::Graph for a while and I have found it to be most excellent. It sure would be nice to export my images to a vector format like SVG instead of PNG or JPEG. Does anyone know of an attempt to add this functionality to GD::Graph? I guess it would, in reality, require adding SVG funtionality to GD itself. I have searched the normal places on CPAN. I see there is something called SVGGraph, which I have not tried, but that would cause me to have to basically rewrite all of my graphing routines. Any suggestions?


Replies are listed 'Best First'.
Re: SVG in GD::Graph?
by Flame (Deacon) on Feb 08, 2003 at 21:43 UTC
    I see several problems with this. GD is a graphics library, and in a sense, SVG really isn't graphics, it's text. But that aside, GD is not suited to working in vectors as it maintains its state on a pixel by pixel basis, rather than 'line of color * between x1,y1,x2,y2' or similar vector methods. So I'm sorry to say, GD, without a rewrite, is probably not capable of SVG.

    My code doesn't have bugs, it just develops random features.

    Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://233750]
Approved by valdez
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-08-07 18:15 GMT
Find Nodes?
    Voting Booth?

    No recent polls found