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,b1a5713afb4e5c1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 01 Jan 2008 21:58:54 +0100 From: Gautier User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: An easy way to simple scientific plots (in Ada)? References: <41bd2384-83a7-46ff-87e9-d726623633e9@s12g2000prg.googlegroups.com> In-Reply-To: <41bd2384-83a7-46ff-87e9-d726623633e9@s12g2000prg.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.1.148.36 X-Original-NNTP-Posting-Host: 85.1.148.36 Message-ID: <477aa97e_5@news.bluewin.ch> X-Trace: news.bluewin.ch 1199221118 85.1.148.36 (1 Jan 2008 21:58:38 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns11feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:19135 Date: 2008-01-01T21:58:54+01:00 List-Id: 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