On Wed, Sep 15, 2010 at 12:40 PM, Johan Mazel <[email protected]> wrote:
> I haven't. Thanks fr the link.
> Actually, I am an Ocaml user so I need Ocamlbindings to use GTK (trhough
> lablgtk) and PlPlot (through its own bindings).
> Unfortunately, my knowledge of Ocaml is not advanced enough in order to know
> whether I'll be able to do something with the bindings provided by lablgtk
> and the ones from PlPlot.
> If I cannot make manage to use GTK and PlPlot, I will use Cairo and GTK
> (which offer a direct function to interface the two libs and the function's
> binding in Ocaml).
> Anyway, thanks for the answer.
> Regards.
> Johan
>

Johan,

There is an OCaml example which does exactly this:

http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/examples/ocaml/xgtk_interface.ml?view=markup

The Plcairo module provides the glue to tie PLplot and Cairo/Gtk
together in OCaml.  You need to have the Cairo OCaml bindings and
lablgtk2 installed (and visible by ocamlfind if I recall correctly)
before compiling PLplot in order to get the Plcairo module and
xgtk_interface example to compile.  If you install Cairo's OCaml
bindings and lablgtk2 through GODI or through their Debian packages
then I think PLplot's build system should find them.

The Plcairo module is not as well tested as the rest of the OCaml
bindings, so any feedback is welcome!

Hez

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to