Hi Hez: On 2009-07-09 12:01-0400 Hezekiah M. Carty wrote:
> 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 can see why you want to keep everything together at this experimental stage but ultimately you will want to move bindings/ocaml/plcairo/tests to examples/ocaml/plcairo (or possibly examples/ocaml) since the final location of all examples should be in the examples tree. <aside for Andrew as octave maintainer> Years ago Joao Cardoso donated octave binding and examples to PLplot with everything integrated into one bindings/octave tree. Through inertia the octave examples still reside there today. Do you agree with me that for consistency's sake we should move the octave examples to examples/octave in the source tree? If you like this idea, I can do all the build system changes (if you don't beat me to it), but I would probably need help from you with the pure octave side of things e.g., setting up octave to find the newly located examples in the build tree. </aside> > > 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. Hez, if you are willing, this appears to be an excellent opportunity for you to become more familiar with CMake. :-) I think making use of the PLplot build system should be straightforward for you (just by following what is done for the ordinary OCaml bindings and examples), but if you run into any difficulties, I would be happy to answer your questions (or step in and find solutions if you become really stuck). Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered 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