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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,db1852ec54f81742 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news-transit.tcx.org.uk!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Cairo graphics library Date: Fri, 5 Aug 2011 09:17:12 +0200 Organization: cbb software GmbH Message-ID: <3pyfg2cm18vq.wrib598l8443$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 0T+Wx16Chmp1uxxZG74Dzg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:20474 Date: 2011-08-05T09:17:12+02:00 List-Id: On Thu, 4 Aug 2011 22:53:56 -0700 (PDT), Ada novice wrote: > I've read that GNAT 2011 has an interface to the Cairo graphics > library. It is announced as a part of GtkAda, but I didn't see it in a distribution. However there exist other bindings to Cairo, which I am currently using: http://sourceforge.net/projects/cairoada/ > Can we use this library to plot graphs with Ada? By graphs I > mean 2-dimensional plots with lines and curves (to start with). Of course you can draw lines in Cairo, this what Cairo was designed for. But Cairo is a low-level vector graphic library. It does not have any ready-to-use widgets and never will. So if you want something out-of-shelf you have to look for higher level libraries. Specifically, off-line plotting is done by Gtk.Extra.Plot. Waveforms (on-line RT curves), i.e. an oscilloscope, is another story. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de