|
From: <ai...@us...> - 2008-12-10 21:12:24
|
Revision: 9083
http://plplot.svn.sourceforge.net/plplot/?rev=9083&view=rev
Author: airwin
Date: 2008-12-10 21:12:20 +0000 (Wed, 10 Dec 2008)
Log Message:
-----------
Fix obvious namespace issues. However, there is a deeper issue with
plplotcanvas that these fixes do not address.
Modified Paths:
--------------
trunk/examples/python/plplotcanvas_animation.py
trunk/examples/python/plplotcanvas_demo.py
Modified: trunk/examples/python/plplotcanvas_animation.py
===================================================================
--- trunk/examples/python/plplotcanvas_animation.py 2008-12-10 18:37:34 UTC (rev 9082)
+++ trunk/examples/python/plplotcanvas_animation.py 2008-12-10 21:12:20 UTC (rev 9083)
@@ -67,7 +67,7 @@
canvas1=None
# Create the x array
-x = ${PYTHON_NUMERIC_NAME}.arange(NPTS)
+x = plplot_py_demos.arange(NPTS)
# Lock on the gtkstate so that we don't try to plot after gtk_main_quit
GTKSTATE_CONTINUE=True
@@ -108,7 +108,7 @@
Nstream = canvas.get_stream_number()
# Generate the sinusoid
- y = ${PYTHON_NUMERIC_NAME}.sin(2.*3.14*(x+offset*(Nstream+1))/PERIOD/(Nstream+1))
+ y = plplot_py_demos.sin(2.*3.14*(x+offset*(Nstream+1))/PERIOD/(Nstream+1))
# Draw the line
canvas.line(x, y)
@@ -177,7 +177,7 @@
if __name__ == "__main__":
# Parse the options
- plplot.plparseopts(sys.argv,plplot.PL_PARSE_FULL);
+ plplot_py_demos.plparseopts(sys.argv,plplot_py_demos.PL_PARSE_FULL);
# Initialize
gtk.threads_init()
Modified: trunk/examples/python/plplotcanvas_demo.py
===================================================================
--- trunk/examples/python/plplotcanvas_demo.py 2008-12-10 18:37:34 UTC (rev 9082)
+++ trunk/examples/python/plplotcanvas_demo.py 2008-12-10 21:12:20 UTC (rev 9083)
@@ -51,10 +51,10 @@
gtk.main_quit()
# Parse the options
-plplot.plparseopts(sys.argv,plplot.PL_PARSE_FULL);
+plplot_py_demos.plparseopts(sys.argv,plplot_py_demos.PL_PARSE_FULL);
# The data to plot
-x = ${PYTHON_NUMERIC_NAME}.arange(11)
+x = plplot_py_demos.arange(11)
y = x**2/10.
# Create the canvas and set its size; during the creation process,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|