From: <ai...@us...> - 2010-11-28 21:38:30
|
Revision: 11355 http://plplot.svn.sourceforge.net/plplot/?rev=11355&view=rev Author: airwin Date: 2010-11-28 21:38:24 +0000 (Sun, 28 Nov 2010) Log Message: ----------- Propagate plstring3 to Python bindings and examples. Modified Paths: -------------- trunk/bindings/swig-support/plplotcapi.i trunk/examples/python/xw18.py Modified: trunk/bindings/swig-support/plplotcapi.i =================================================================== --- trunk/bindings/swig-support/plplotcapi.i 2010-11-28 20:53:56 UTC (rev 11354) +++ trunk/bindings/swig-support/plplotcapi.i 2010-11-28 21:38:24 UTC (rev 11355) @@ -878,6 +878,10 @@ void plstring( PLINT n, PLFLT *Array, PLFLT *ArrayCk, const char *string ); +%feature( "autodoc", "Prints out the same string repeatedly at the n 3D points in world coordinates given by the x, y, and z arrays. Supersedes plpoin3 for the case where text refers to a unicode glyph either directly as UTF-8 or indirectly via the standard text escape sequences allowed for PLplot input strings." ) plstring3; +void +plstring3( PLINT n, PLFLT *Array, PLFLT *ArrayCk, PLFLT *ArrayCk, const char *string ); + %feature( "autodoc", "Add a point to a stripchart." ) plstripa; void plstripa( PLINT id, PLINT pen, PLFLT x, PLFLT y ); Modified: trunk/examples/python/xw18.py =================================================================== --- trunk/examples/python/xw18.py 2010-11-28 20:53:56 UTC (rev 11354) +++ trunk/examples/python/xw18.py 2010-11-28 21:38:24 UTC (rev 11355) @@ -1,3 +1,4 @@ +# -*- coding: utf-8; -*- # $Id$ # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Alan W. Irwin @@ -63,7 +64,8 @@ if opt[k]: plline3(x, y, z) else: - plpoin3(x, y, z, 1) + # U+22C5 DOT OPERATOR. + plstring3(x, y, z, "⋅") plcol0(3) title = "#frPLplot Example 18 - Alt=%.0f, Az=%.0f" % (alt[k], This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |