comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Cairo graphics library
Date: Fri, 5 Aug 2011 09:17:12 +0200
Date: 2011-08-05T09:17:12+02:00	[thread overview]
Message-ID: <3pyfg2cm18vq.wrib598l8443$.dlg@40tude.net> (raw)
In-Reply-To: ed6e0eb8-845c-451e-8755-33b33f4f7edb@q5g2000yqj.googlegroups.com

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



  reply	other threads:[~2011-08-05  7:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-05  5:53 Cairo graphics library Ada novice
2011-08-05  7:17 ` Dmitry A. Kazakov [this message]
2011-08-11  4:51   ` Ada novice
2011-08-11 23:27 ` Jerry
2011-08-12  4:42   ` Ada novice
2011-08-12 23:26     ` Jerry
2011-08-15  5:02       ` Ada novice
replies disabled

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