|
From: <and...@us...> - 2009-01-18 01:12:21
|
Revision: 9334
http://plplot.svn.sourceforge.net/plplot/?rev=9334&view=rev
Author: andrewross
Date: 2009-01-18 01:12:11 +0000 (Sun, 18 Jan 2009)
Log Message:
-----------
Update pythondemos script to include all examples except interactive
example 14, 17 and 31 which call plinit directly. Update examples to
remove extraneous calls to plend.
Modified Paths:
--------------
trunk/examples/python/pythondemos.py
trunk/examples/python/xw19.py
trunk/examples/python/xw21.py
trunk/examples/python/xw25.py
Modified: trunk/examples/python/pythondemos.py
===================================================================
--- trunk/examples/python/pythondemos.py 2009-01-17 21:34:26 UTC (rev 9333)
+++ trunk/examples/python/pythondemos.py 2009-01-18 01:12:11 UTC (rev 9334)
@@ -33,15 +33,10 @@
# Initialize plplot
plinit()
-# Skip 14 (must be standalone so cannot be run from pythondemos.py),
-# 17 (must be standalone and interactive so cannot be run from pythondemos.py),
-# 19 (placeholder without real implementation),
-# 20 (no implementation)
-# 21 (no implementation), and
-# 24 (requires special fonts installed to produce good-looking result).
-# 25 (no implementation)
+# Exclude interactive demos 14, 17, 31 which call plinit in the xw??.py
+# script
failed = []
-for i in range(1, 14) + [15, 16, 18, 22, 23, 26]:
+for i in range(1, 14)+[15,16]+range(18,31):
script = 'xw' + '%02d' % i
try:
__import__(script, globals(), locals(), [])
Modified: trunk/examples/python/xw19.py
===================================================================
--- trunk/examples/python/xw19.py 2009-01-17 21:34:26 UTC (rev 9333)
+++ trunk/examples/python/xw19.py 2009-01-18 01:12:11 UTC (rev 9334)
@@ -84,6 +84,5 @@
pllsty(2)
plmeridians(mapform19,10.0, 10.0, 0.0, 360.0, -10.0, 80.0)
- plend()
main()
Modified: trunk/examples/python/xw21.py
===================================================================
--- trunk/examples/python/xw21.py 2009-01-17 21:34:26 UTC (rev 9333)
+++ trunk/examples/python/xw21.py 2009-01-18 01:12:11 UTC (rev 9334)
@@ -166,6 +166,5 @@
plcol0(15)
pllab('','',title[alg-1])
plot3dc(xg, yg, zg, DRAW_LINEXY | MAG_COLOR | BASE_CONT, clev)
- plend()
main()
Modified: trunk/examples/python/xw25.py
===================================================================
--- trunk/examples/python/xw25.py 2009-01-17 21:34:26 UTC (rev 9333)
+++ trunk/examples/python/xw25.py 2009-01-18 01:12:11 UTC (rev 9334)
@@ -84,8 +84,5 @@
pllsty(1)
plline(x0,y0)
- # Don't forget to call plend() to finish off!
- plend()
-
main()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|