|
From: <and...@us...> - 2013-11-05 14:56:14
|
Revision: 12658
http://sourceforge.net/p/plplot/code/12658
Author: andrewross
Date: 2013-11-05 14:56:10 +0000 (Tue, 05 Nov 2013)
Log Message:
-----------
Further plpath updates for tcl/tk, java and lua bindings.
Modified Paths:
--------------
trunk/bindings/java/PLStream.java
trunk/bindings/lua/plplotluac.i
trunk/bindings/tcl/plapi.tpl
trunk/bindings/tk/PLWin.itk
Modified: trunk/bindings/java/PLStream.java
===================================================================
--- trunk/bindings/java/PLStream.java 2013-11-05 14:27:16 UTC (rev 12657)
+++ trunk/bindings/java/PLStream.java 2013-11-05 14:56:10 UTC (rev 12658)
@@ -695,6 +695,12 @@
plplotjavac.plpat( inc, del );
}
+ public void path( int n, double x1, double y1, double x2, double y2 )
+ {
+ if ( set_stream() == -1 ) return;
+ plplotjavac.plpath( n, x1, y1, x2, y2 );
+ }
+
public void poin( double[] x, double[] y, int code )
{
if ( set_stream() == -1 ) return;
Modified: trunk/bindings/lua/plplotluac.i
===================================================================
--- trunk/bindings/lua/plplotluac.i 2013-11-05 14:27:16 UTC (rev 12657)
+++ trunk/bindings/lua/plplotluac.i 2013-11-05 14:56:10 UTC (rev 12658)
@@ -1434,6 +1434,7 @@
%rename( plot3dcl ) plot3dcl;
%rename( parseopts ) plparseopts;
%rename( pat ) plpat;
+%rename( path ) plpath;
%rename( poin ) plpoin;
%rename( poin3 ) plpoin3;
%rename( poly3 ) plpoly3;
Modified: trunk/bindings/tcl/plapi.tpl
===================================================================
--- trunk/bindings/tcl/plapi.tpl 2013-11-05 14:27:16 UTC (rev 12657)
+++ trunk/bindings/tcl/plapi.tpl 2013-11-05 14:56:10 UTC (rev 12658)
@@ -560,6 +560,15 @@
inc PLINT *
del PLINT *
+# Draw a line connecting two points, accounting for coordinate transforms
+
+pltclcmd plpath void
+n PLINT
+x1 PLFLT
+y1 PLFLT
+x2 PLFLT
+y2 PLFLT
+
# Plots array y against x for n points using ASCII code "code".
# The original tclAPI.c version of this had a defaultable n capability,
# which we don't have...
Modified: trunk/bindings/tk/PLWin.itk
===================================================================
--- trunk/bindings/tk/PLWin.itk 2013-11-05 14:27:16 UTC (rev 12657)
+++ trunk/bindings/tk/PLWin.itk 2013-11-05 14:56:10 UTC (rev 12658)
@@ -222,6 +222,10 @@
eval $plwin cmd plpat $args
}
+ method plpath {args} {
+ eval $plwin cmd plpath $args
+ }
+
method plpoin {args} {
eval $plwin cmd plpoin $args
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|