On Wed, Aug 19, 2009 at 7:16 PM, Hezekiah M.
Carty<hezekiahca...@users.sourceforge.net> wrote:
> On Wed, Aug 19, 2009 at 6:28 PM, Hezekiah M.
> Carty<hezekiahca...@users.sourceforge.net> wrote:
>> On Wed, Aug 19, 2009 at 4:55 PM, Andrew
>> Ross<andrewr...@users.sourceforge.net> wrote:
>>> Having said both of these, I can see the use of something like this and as 
>>> Alan said
>>> now is the time to decide before we release with the new plscmap1 API. 
>>> Propagating
>>> changes is not a big problem since this is a relatively straightfoward 
>>> function and
>>> only a simple modification to the API.
>>
>> Sounds good.  I will make the change and commit it.
>
> Done for C as commit 10302, and OCaml as commit 10303.

The attached patch should update the plspal1 binding for all of the
other languages except Fortran 77 and Fortran 90.  I don't have the
prerequisites for most of the other language bindings installed on my
system, so this patch is unfortunately not tested.  F77 and F90 are
left out as I am uncertain how to handle them.

I have not updated the example 16s of the languages other than C and
OCaml as I do now know how the PLBOOL -> language booleans are handled
for each of them.  If this information is readily available I would be
happy to assist in those changes as well.

I will work to track down the language bindings dependencies issues on
my system in the mean time.

Hez

-- 
Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science
diff --git a/bindings/c++/plstream.cc b/bindings/c++/plstream.cc
index 3dedcbc..65efa22 100644
--- a/bindings/c++/plstream.cc
+++ b/bindings/c++/plstream.cc
@@ -1890,11 +1890,11 @@ void plstream::spal0(const char *filename)
 
 /* Set the colors for color table 1 from a cmap1 file */
 
-void plstream::spal1(const char *filename)
+void plstream::spal1(const char *filename, bool interpolate)
 {
   set_stream();
 
-  plspal1(filename);
+  plspal1(filename, (PLBOOL) interpolate);
 }
 
 /* Set the pause (on end-of-page) status */
diff --git a/bindings/d/plplot.d b/bindings/d/plplot.d
index ecfb9f3..5f6211f 100644
--- a/bindings/d/plplot.d
+++ b/bindings/d/plplot.d
@@ -451,9 +451,9 @@ void plspal0(string filename)
 }
 
 /* Set the colors for color table 1 from a cmap1 file */
-void plspal1(string filename)
+void plspal1(string filename, PLBOOL interpolate)
 {
-	c_plspal1(toStringz(filename));
+	c_plspal1(toStringz(filename), interpolate);
 }
 
 /* Set color map 0 colors by 8 bit RGB values */
@@ -1903,7 +1903,7 @@ void c_plspage(PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng, PLINT xoff, PLINT y
 void c_plspal0(char* filename);
 
 /* Set the colors for color table 1 from a cmap1 file */
-void c_plspal1(char *filename);
+void c_plspal1(char *filename, PLBOOL interpolate);
 
 /* Set the pause (on end-of-page) status */
 void c_plspause(PLBOOL pause);
diff --git a/bindings/java/PLStream.java b/bindings/java/PLStream.java
index d80c1d5..009aae5 100644
--- a/bindings/java/PLStream.java
+++ b/bindings/java/PLStream.java
@@ -803,9 +803,9 @@ public void spal0(String filename) {
     plplotjavac.plspal0(filename);
 }
 
-public void spal1(String filename) {
+public void spal1(String filename, boolean interpolate) {
     if (set_stream() == -1) return;
-    plplotjavac.plspal1(filename);
+    plplotjavac.plspal1(filename, interpolate);
 }
 
 public void spause(boolean pause) {
diff --git a/bindings/octave/plplot_octave.h.in b/bindings/octave/plplot_octave.h.in
index 0967cf1..ea7ae64 100644
--- a/bindings/octave/plplot_octave.h.in
+++ b/bindings/octave/plplot_octave.h.in
@@ -1394,7 +1394,7 @@ void c_plspage(PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng,
 
 /* Set the colors for color table 1 from a cmap1 file */
 
-void c_plspal1(const char *filename); //%name plspal1
+void c_plspal1(const char *filename, PLBOOL interpolate); //%name plspal1
 
 /* Set the pause (on end-of-page) status */
 
diff --git a/bindings/swig-support/plplotcapi.i b/bindings/swig-support/plplotcapi.i
index 53647f2..9c9c2c2 100644
--- a/bindings/swig-support/plplotcapi.i
+++ b/bindings/swig-support/plplotcapi.i
@@ -799,7 +799,7 @@ plspal0(const char *filename);
 
 %feature("autodoc", "Set the color map 1 colors using a cmap1 color palette file.") plspal1;
 void
-plspal1(const char *filename);
+plspal1(const char *filename, PLBOOL interpolate);
 
 %feature("autodoc", "Set the pause (on end-of-page) status.") plspause;
 void
diff --git a/bindings/tcl/plapi.tpl b/bindings/tcl/plapi.tpl
index 20c3213..edf9013 100644
--- a/bindings/tcl/plapi.tpl
+++ b/bindings/tcl/plapi.tpl
@@ -878,6 +878,7 @@ filename	const char *
 
 pltclcmd plspal1 void
 filename	const char *
+interpolate	PLINT
 
 # Set the pause (on end-of-page) status.
 
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to