From: <and...@us...> - 2009-08-14 21:40:41
|
Revision: 10254 http://plplot.svn.sourceforge.net/plplot/?rev=10254&view=rev Author: andrewross Date: 2009-08-14 21:40:34 +0000 (Fri, 14 Aug 2009) Log Message: ----------- Update python example 16 to give identical results to C version. Modified Paths: -------------- trunk/examples/python/x16 trunk/examples/python/xw16.py Modified: trunk/examples/python/x16 =================================================================== --- trunk/examples/python/x16 2009-08-14 21:30:58 UTC (rev 10253) +++ trunk/examples/python/x16 2009-08-14 21:40:34 UTC (rev 10254) @@ -30,6 +30,11 @@ # Parse and process command line arguments plparseopts(sys.argv, PL_PARSE_FULL) +# Load colour palettes +plspal0("cmap0_black_on_white.pal") +plspal1("cmap1_gray.pal") +plscmap0n(3) + # Initialize plplot plinit() Modified: trunk/examples/python/xw16.py =================================================================== --- trunk/examples/python/xw16.py 2009-08-14 21:30:58 UTC (rev 10253) +++ trunk/examples/python/xw16.py 2009-08-14 21:40:34 UTC (rev 10254) @@ -79,10 +79,6 @@ xg2 = xx + distort*cos((0.5*pi)*xx)*cos((0.5*pi)*yy) yg2 = yy - distort*cos((0.5*pi)*xx)*cos((0.5*pi)*yy) - # Load colour palettes - plspal0("cmap0_black_on_white.pal") - plspal1("cmap1_gray.pal") - # Plot using identity transform pladv(0) @@ -114,6 +110,7 @@ plspal0("cmap0_black_on_white.pal") plspal1("cmap1_blue_yellow.pal") + plscmap0n(3) pladv(0) plvpor(0.1, 0.9, 0.1, 0.9) @@ -132,6 +129,7 @@ plspal0("cmap0_black_on_white.pal") plspal1("cmap1_blue_red.pal") + plscmap0n(3) pladv(0) plvpor(0.1, 0.9, 0.1, 0.9) @@ -151,6 +149,7 @@ plspal0("") plspal1("") + plscmap0n(3) pladv(0) plvpor(0.1, 0.9, 0.1, 0.9) @@ -174,6 +173,7 @@ plspal0("cmap0_black_on_white.pal") plspal1("cmap1_gray.pal") + plscmap0n(3) pladv(0) plvpor(0.1, 0.9, 0.1, 0.9) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |