From: <hez...@us...> - 2009-10-05 21:39:38
|
Revision: 10516 http://plplot.svn.sourceforge.net/plplot/?rev=10516&view=rev Author: hezekiahcarty Date: 2009-10-05 21:39:29 +0000 (Mon, 05 Oct 2009) Log Message: ----------- Update OCaml tutorial in documentation to reflect recent API changes Modified Paths: -------------- trunk/doc/docbook/src/ocaml.xml Modified: trunk/doc/docbook/src/ocaml.xml =================================================================== --- trunk/doc/docbook/src/ocaml.xml 2009-10-05 21:13:09 UTC (rev 10515) +++ trunk/doc/docbook/src/ocaml.xml 2009-10-05 21:39:29 UTC (rev 10516) @@ -276,14 +276,16 @@ let simple_example () = (* Initialize a new plot, using the windowed Cairo device ("xcairo") *) - let p = P.init (-10.0) 10.0 0.0 100.0 P.Greedy (P.Window P.Cairo) in + let p = + P.init (-10.0, 0.0) (10.0, 100.0) P.Greedy (P.Window P.Cairo) + in (* Draw the parabola *) P.plot ~stream:p [P.func P.Blue (fun x -> x ** 2.0) (-10.0, 10.0)]; (* Draw the plot axes and close up the plot stream using the default spacing between tick marks. *) - P.finish ~stream:p 0.0 0.0; + P.finish ~stream:p (); () let () = simple_example () This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |