From: <hez...@us...> - 2009-08-20 01:22:20
|
Revision: 10303 http://plplot.svn.sourceforge.net/plplot/?rev=10303&view=rev Author: hezekiahcarty Date: 2009-08-20 00:10:20 +0000 (Thu, 20 Aug 2009) Log Message: ----------- Update the OCaml bindings and example 16 for the plspal1 API change Modified Paths: -------------- trunk/bindings/ocaml/plplot_h trunk/bindings/ocaml/plplot_h.inc trunk/examples/ocaml/x16.ml Modified: trunk/bindings/ocaml/plplot_h =================================================================== --- trunk/bindings/ocaml/plplot_h 2009-08-20 00:09:10 UTC (rev 10302) +++ trunk/bindings/ocaml/plplot_h 2009-08-20 00:10:20 UTC (rev 10303) @@ -481,7 +481,7 @@ c_plspal0(const char *filename); void -c_plspal1(const char *filename); +c_plspal1(const char *filename, PLBOOL interpolate); void c_plspause(PLBOOL pause); Modified: trunk/bindings/ocaml/plplot_h.inc =================================================================== --- trunk/bindings/ocaml/plplot_h.inc 2009-08-20 00:09:10 UTC (rev 10302) +++ trunk/bindings/ocaml/plplot_h.inc 2009-08-20 00:10:20 UTC (rev 10303) @@ -111,7 +111,7 @@ [mlname(plsori)] void c_plsori ( int ori ); [mlname(plspage)] void c_plspage ( double xp, double yp, int xleng, int yleng, int xoff, int yoff ); [mlname(plspal0)] void c_plspal0 ( [string] const char * filename ); -[mlname(plspal1)] void c_plspal1 ( [string] const char * filename ); +[mlname(plspal1)] void c_plspal1 ( [string] const char * filename, boolean interpolate ); [mlname(plspause)] void c_plspause ( boolean pause ); [mlname(plsstrm)] void c_plsstrm ( int strm ); [mlname(plssub)] void c_plssub ( int nx, int ny ); Modified: trunk/examples/ocaml/x16.ml =================================================================== --- trunk/examples/ocaml/x16.ml 2009-08-20 00:09:10 UTC (rev 10302) +++ trunk/examples/ocaml/x16.ml 2009-08-20 00:10:20 UTC (rev 10303) @@ -60,7 +60,7 @@ (* Load color palettes *) plspal0 "cmap0_black_on_white.pal"; - plspal1 "cmap1_gray.pal"; + plspal1 "cmap1_gray.pal" true; (* Reduce colors in cmap 0 so that cmap 1 is useful on a 16-color display *) plscmap0n 3; @@ -142,7 +142,7 @@ (* Load color palettes *) plspal0 "cmap0_black_on_white.pal"; - plspal1 "cmap1_blue_yellow.pal"; + plspal1 "cmap1_blue_yellow.pal" true; pladv 0; plvpor 0.1 0.9 0.1 0.9; @@ -162,7 +162,7 @@ (* Load color palettes *) plspal0 "cmap0_black_on_white.pal"; - plspal1 "cmap1_blue_red.pal"; + plspal1 "cmap1_blue_red.pal" true; pladv 0; plvpor 0.1 0.9 0.1 0.9; @@ -184,7 +184,7 @@ (* Load color palettes *) plspal0 ""; - plspal1 ""; + plspal1 "" true; pladv 0; plvpor 0.1 0.9 0.1 0.9; @@ -223,7 +223,7 @@ (* Load colour palettes*) plspal0 "cmap0_black_on_white.pal"; - plspal1 "cmap1_gray.pal"; + plspal1 "cmap1_gray.pal" true; pladv 0; plvpor 0.1 0.9 0.1 0.9; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |