comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: 2d graph
Date: Thu, 23 Mar 2006 18:33:53 +0100
Date: 2006-03-23T18:33:53+01:00	[thread overview]
Message-ID: <4422DC01.6030900@mailinator.com> (raw)
In-Reply-To: <uzmjh5r8s.fsf@no.email.thanks.invalid>

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...



  parent reply	other threads:[~2006-03-23 17:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-23 11:34 2d graph Anders Wirzenius
2006-03-23 13:20 ` Dmitry A. Kazakov
2006-03-23 13:40   ` Anders Wirzenius
2006-03-23 14:04   ` Bobby D. Bryant
2006-03-24  7:03     ` Anders Wirzenius
2006-03-24  8:44       ` Jacob Sparre Andersen
2006-03-25 12:33         ` Bobby D. Bryant
2006-03-23 15:38 ` Jeffrey R. Carter
2006-03-23 17:23 ` Jacob Sparre Andersen
2006-03-23 17:33 ` Alex R. Mosteo [this message]
2006-03-23 17:57   ` tmoran
2006-03-24  7:21   ` Anders Wirzenius
2006-03-23 19:31 ` Gautier
2006-03-25  3:12 ` Gene
2006-04-10 22:19 ` Stefan Skoglund
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox