🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #54021

Plotting a graph on a web page

#54021
From: David Thiele
Date: Thu, 04 Dec 1997 00:00
70 lines
2597 bytes

--------------917991AB7E590C1ADCBE129F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Dear All

Please excuse a question from a WWW newbie.  We are writing a web page
which includes a graph based on input data supplied by the user.  At
this stage we are experimenting with gnuplot to generate the graph.  Our
CGI scripts are written in C.

What is unclear is how to incorporate this graphing function into our
CGI scripts so that the graph appears "on the fly" with user supplied
data.  Can gnuplot be called from the CGI script to generate say a
postscript format of the graph which we then send to convert to generate
a .gif file which can then be displayed on the web page.  If so how?  If
not any suggestions on how to perform this function?

Many thanks for your help!


--
David Thiele PhD
Department of Diagnostic Physics (7D)
Royal Brisbane Hospital
Herston  Qld  4029
Australia

Phone:  +61 7 32537896
Fax:  +61 7 32538481
Email:  thieled@health.qld.gov.au



--------------917991AB7E590C1ADCBE129F
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Dear All

<P>Please excuse a question from a WWW newbie.&nbsp; We are writing a web
page which includes a graph based on input data supplied by the user.&nbsp;
At this stage we are experimenting with gnuplot to generate the graph.&nbsp;
Our CGI scripts are written in C.

<P>What is unclear is how to incorporate this graphing function into our
CGI scripts so that the graph appears "on the fly" with user supplied data.&nbsp;
Can gnuplot be called from the CGI script to generate say a postscript
format of the graph which we then send to convert to generate a .gif file
which can then be displayed on the web page.&nbsp; If so how?&nbsp; If
not any suggestions on how to perform this function?

<P>Many thanks for your help!
<BR>&nbsp;
<PRE>--&nbsp;
David Thiele PhD
Department of Diagnostic Physics (7D)
Royal Brisbane Hospital
Herston&nbsp; Qld&nbsp; 4029
Australia

Phone:&nbsp; +61 7 32537896
Fax:&nbsp; +61 7 32538481
Email:&nbsp; thieled@health.qld.gov.au</PRE>
&nbsp;</HTML>

--------------917991AB7E590C1ADCBE129F--
Technical Details
Message-ID: <34861FDC.7DA15CC@health.qld.gov.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,869b4db54275f178,start
X-Google-Attributes: gid102983,public
From: David Thiele <thieled@health.qld.gov.au>
Subject: Plotting a graph on a web page
Date: 1997/12/04
Message-ID: <34861FDC.7DA15CC@health.qld.gov.au>
X-Deja-AN: 295045099
Organization: Royal Brisbane Hospital
Newsgroups: aus.computers.linux