Re: [OxLUG] Library to generate graphs

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mark Poolman
Date:  
To: Oxfordshire Linux User Group Discussion List
Subject: Re: [OxLUG] Library to generate graphs
On Mon, 2010-08-30 at 21:52 +0100, Sad Clouds wrote:
> On Mon, 30 Aug 2010 12:29:45 +0100
> Chris Wareham <> wrote:
>
> > Sad Clouds said on 28/08/2010 11:42:
> > > Hi, I'm looking for a C library (not executable binary program) to
> > > generate graphs, something similar to load graphs you can view on
> > > the web.
> > >
> > > It needs to be as small as possible, i.e. no dependencies on things
> > > like X11 toolkits, etc. I'm still searching on the Internet, but if
> > > anyone knows such a library, please let me know.
> > >
> > > Thanks.
> > >
> >
> > There was a version of gnuplot that could be linked as a library, but
> > what limits you from calling a separate gnuplot executable and piping
> > the output from it?
> >
> > Chris
>
> Well I'm thinking about using it as part of another library, and execing
> an executable every time seems like a broken design.
>
> After looking around, I'm actually leaning towards writing a library
> from scratch and have it output graphs in svg or png
>



I'd second the gnuplot idea. It's something I've been doing years.
Gnuplot is extremely flexible, and writing a library boils down to
defining a set of commands to send down the pipe. You don't even need to
read stdout as gnuplot will send output to directly to svg, png, ps,
pdf, and pretty much any other format you've heard of.


I really can't see any reason for describing sch an approach as "broken
design".

Mark