Commit 10127 adds an experimental PLplot add-on library under
bindings/ocaml/plcairo/ which allows one to use the extcairo driver
under OCaml.

The Plcairo library allows you to provide a Cairo context created with
the Cairo OCaml bindings to PLplot for use with the extcairo driver.
This supports modifications to the plot surface with Cairo directly as
well as embedding extcairo plot surfaces in Gtk+ applications with the
OCaml Gtk+ bindings (the lablgtk library).

Three examples are included in the bindings/ocaml/plcairo/tests/
directory.  These demonstrate some simple Cairo use, using multiple
plot pages with the Plcairo library and embedding a PLplot-generated
plot in a Gtk+ application window.

I have been using a similar version of this code for a while now, and
it seems to function properly.  That said, the API is very likely to
change as I figure out the best way to integrate it properly in to the
core OCaml bindings.  Plcairo is built separately from the rest of
PLplot at this point and does not yet make use of the PLplot CMake
build system.

Tests, comments, questions and suggestions are quite welcome.  A
README.plcairo is included which covers the basic requirements and
installation process for the Plcairo library.

Thanks to Phillipe for his requests which spurred the release of this code.

Hez

-- 
Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to