|
From: <ai...@us...> - 2010-05-03 02:03:19
|
Revision: 10962
http://plplot.svn.sourceforge.net/plplot/?rev=10962&view=rev
Author: airwin
Date: 2010-05-03 02:03:13 +0000 (Mon, 03 May 2010)
Log Message:
-----------
Explicitly specify pltr as None for plshade and plshades which translates
to NULL at the C level and which is interpreted there as defining the x
and y arrays from xmin, xmax, nx and ymin, ymax, and ny. This is very
different from using pltr0 (the default user-friendly result if nothing
is specified for pltr).
This solves the Python (but of course not yet Tcl) issue of dropping the
pltr_data tests for NULL at the C level. We were relying on that before to
obtain the xmin, xmax,... result but when that is dropped we were
incorrectly getting the python user-friendly pltr0 default.
Modified Paths:
--------------
trunk/examples/python/xw15.py
trunk/examples/python/xw21.py
Modified: trunk/examples/python/xw15.py
===================================================================
--- trunk/examples/python/xw15.py 2010-05-03 01:52:09 UTC (rev 10961)
+++ trunk/examples/python/xw15.py 2010-05-03 02:03:13 UTC (rev 10962)
@@ -72,7 +72,7 @@
# in X and Y coordinates
plshade( z, -1., 1., -1., 1.,
shade_min, shade_max, sh_cmap, sh_color, sh_width,
- min_color, min_width, max_color, max_width, 1)
+ min_color, min_width, max_color, max_width, 1, None, None)
plcol0(1)
plbox("bcnst", 0.0, 0, "bcnstv", 0.0, 0)
@@ -114,7 +114,7 @@
# in X and Y coordinates
plshade( z, -1., 1., -1., 1.,
shade_min, shade_max, sh_cmap, sh_color, sh_width,
- min_color, min_width, max_color, max_width, 1)
+ min_color, min_width, max_color, max_width, 1, None, None)
plcol0(1)
plbox("bcnst", 0.0, 0, "bcnstv", 0.0, 0)
Modified: trunk/examples/python/xw21.py
===================================================================
--- trunk/examples/python/xw21.py 2010-05-03 01:52:09 UTC (rev 10961)
+++ trunk/examples/python/xw21.py 2010-05-03 02:03:13 UTC (rev 10962)
@@ -154,7 +154,7 @@
plenv0(xm,xM,ym,yM,2,0)
plcol0(15)
pllab('X','Y',title[alg-1])
- plshades(zg, xm, xM, ym, yM, clev, 1, 1)
+ plshades(zg, xm, xM, ym, yM, clev, 1, 1, None, None)
plcol0(2)
else:
clev = lzm + (lzM-lzm)*arange(nl)/(nl-1)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|