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,FREEMAIL_FROM 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!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: 2d graph Date: Thu, 23 Mar 2006 18:33:53 +0100 Message-ID: <4422DC01.6030900@mailinator.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 4aeb6z6iuU/wGisvP085VQ3uvnpbKclbVwcRnVAA/g1eiW3Bw= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3580 Date: 2006-03-23T18:33:53+01: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 I have some packages for simple BMP drawing in memory. You can either serve the resulting file via AWS or write it to disk. There are functions for line/circle drawing. https://svn.mosteo.com/public/Adagio%20head/src/agpl/agpl-bmp.ads https://svn.mosteo.com/public/Adagio%20head/src/agpl/agpl-bmp-draw.ads Apart from the other suggestions you have got, maybe you could use GtkAda to use all its drawing facilities in an off-screen buffer and then save that in some format known to GtkAda...