comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier@fakeaddress.nil>
Subject: Re: An easy way to simple scientific plots (in Ada)?
Date: Tue, 01 Jan 2008 21:58:54 +0100
Date: 2008-01-01T21:58:54+01:00	[thread overview]
Message-ID: <477aa97e_5@news.bluewin.ch> (raw)
In-Reply-To: <41bd2384-83a7-46ff-87e9-d726623633e9@s12g2000prg.googlegroups.com>

JPWoodruff@gmail.com:

...
 > The kind of data I'll be examining are similar to
 > --
 > type data is array (min..max) of float;
 > X, Y : data ;
 > --
 > circle (X, Y : out data) ;
 > -- makes (max-min+1) values satisfying
 > --       x**2 + y**2 = 1;
 > plot_curve(X, Y) ; -- syntax to suit
 > -- puts a figure that's sort-of round into a window
...
> So can I ask for a suggestion: which library would be simplest for me
> to install and use for my task?

Maybe you'll be happy with that one:

   http://homepage.sunrise.ch/mysunrise/gdm/graph.htm

All drawing primitives are in two variants: pixel coords (Integer) and coords in 
a virtual rectangle (Float) the corners of which you assign those of your 
window, screen or postscript sheet. It performs line clipping, so you can draw 
everything without fear of getting a part outside of the "borders"...

For Windows, it runs on top of AdaGraph (so you need to install both), but could 
be plugged into any basic graphics system.

Cheers
Gautier



      parent reply	other threads:[~2008-01-01 20:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-26 18:37 An easy way to simple scientific plots (in Ada)? JPWoodruff
2007-12-26 21:30 ` Jeffrey R. Carter
2007-12-26 22:49   ` Manuel Collado
2007-12-27  4:07   ` JPWoodruff
2007-12-27  9:10     ` Dmitry A. Kazakov
2007-12-27 18:19       ` JPWoodruff
2007-12-27 22:52     ` Jeffrey R. Carter
2007-12-27  2:15 ` Jeffrey Creem
2007-12-27 13:56 ` Vadim Godunko
2007-12-29 22:28   ` I. Levashew
2007-12-30 18:40     ` JPWoodruff
2007-12-27 20:23 ` Jerry
2007-12-28 19:53   ` JPWoodruff
2007-12-30 21:25     ` Jerry
2007-12-31  3:40       ` JPWoodruff
2007-12-31 10:02         ` Jerry
2008-01-01 20:58 ` Gautier [this message]
replies disabled

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