🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #54006

Re: Plotting a graph on a web page

#54006
From: Marcelo Cantos
Date: Fri, 05 Dec 1997 00:00
33 lines
1745 bytes
mheath@netspace.net.au (Mark Heath) writes:

> 
> Marcelo Cantos (marcelo@mds.rmit.edu.au) wrote:
> 
> : You could call gnuplot, but that's probably an expensive way to do it,
> : since you would have to go through several stages to get to GIF.  I
> : would suggest looking around for a GIF library for C.
> 
> If you're after a gif package for (in) C check out the netpbm utilities.
> 
> The PPM/PGM/PBM file formats are very simple to write but I dont know of 
> many browsers which grok P[PGB]M.
> 
> At the very least you could pipe your output through ppmtogif (part of 
> the netpbm package)
> 
> Hang on doesn't gnuplot produce ppm files??

Yes, but only gray scale.  I actually have and use netpbm extensively,
but I wouldn't recommend it for dynamic CGI GIF's as it can _really_
slow things down.  This is because netpbm tools are all command line
tools.  You do everything with temp files and pipes.

The real problem, however, is that netpbm doesn't supply drawing tools
as such, only image manipulation.  Sure, you can create a 1-pixel pgm
file and paste it onto another image, but you'll be waiting till the
cows come home to see the result! :-)


Cheers,
Marcelo
Technical Details
Message-ID: <874t4otp7v.fsf@r34.citri.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34861FDC.7DA15CC@health.qld.gov.au> <87iut541wb.fsf@r34.citri.edu.au> <667pgm$88t$2@otis.netspace.net.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,869b4db54275f178
X-Google-Attributes: gid102983,public
From: Marcelo Cantos <marcelo@mds.rmit.edu.au>
Subject: Re: Plotting a graph on a web page
Date: 1997/12/05
Message-ID: <874t4otp7v.fsf@r34.citri.edu.au>
X-Deja-AN: 295368190
References: <34861FDC.7DA15CC@health.qld.gov.au> <87iut541wb.fsf@r34.citri.edu.au> <667pgm$88t$2@otis.netspace.net.au>
Organization: Royal Melbourne Institute of Technology, Melbourne, Australia.
Newsgroups: aus.computers.linux