From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bf1120cc5ca0ddec X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: 2d graph References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.214.35.215 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1143128308 12.214.35.215 (Thu, 23 Mar 2006 15:38:28 GMT) NNTP-Posting-Date: Thu, 23 Mar 2006 15:38:28 GMT Date: Thu, 23 Mar 2006 15:38:28 GMT Xref: g2news1.google.com comp.lang.ada:3576 Date: 2006-03-23T15:38:28+00:00 List-Id: Anders Wirzenius wrote: > I want to produce a 2d graph to be presented as an image on a HTML page. > Does anyone have an Ada example for, say, SVG? > The data is a textfile with x and y values on each line. > 1.0 1.0 > 2.3 3.2 > 3.0 5.9 You could paste the data into a spreadsheet, generate the graph in the spreadsheet, copy the graph, paste it into a graphics program, save it as an image, and link to that image in your HTML. You could use Plot_Windows from Win_IO to generate the graph, capture the resulting window as an image, paste it into a graphics program, edit out any parts of the window you don't want, and continue as above. -- Jeff Carter "If I could find a sheriff who so offends the citizens of Rock Ridge that his very appearance would drive them out of town ... but where would I find such a man? Why am I asking you?" Blazing Saddles 37