## [Plplot-cvs] SF.net SVN: plplot:[9417] trunk/examples/lua/x03.lua

 [Plplot-cvs] SF.net SVN: plplot:[9417] trunk/examples/lua/x03.lua From: - 2009-01-30 10:08:26 ```Revision: 9417 http://plplot.svn.sourceforge.net/plplot/?rev=9417&view=rev Author: smekal Date: 2009-01-30 10:08:22 +0000 (Fri, 30 Jan 2009) Log Message: ----------- Example 3 produces now same results as other examples. Modified Paths: -------------- trunk/examples/lua/x03.lua Modified: trunk/examples/lua/x03.lua =================================================================== --- trunk/examples/lua/x03.lua 2009-01-30 02:38:01 UTC (rev 9416) +++ trunk/examples/lua/x03.lua 2009-01-30 10:08:22 UTC (rev 9417) @@ -66,8 +66,8 @@ pl.col0(2) -for i=0, 11 do - theta = 30 * i +for i=1, 12 do + theta = 30 * (i-1) dx = math.cos(dtr * theta) dy = math.sin(dtr * theta) @@ -96,7 +96,7 @@ -- Draw the graph for i=1, 361 do - r = math.sin(dtr * (5 * i-1)) + r = math.sin(dtr * (5*(i-1))) x[i] = x0[i] * r y[i] = y0[i] * r end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ```

 [Plplot-cvs] SF.net SVN: plplot:[9417] trunk/examples/lua/x03.lua From: - 2009-01-30 10:08:26 ```Revision: 9417 http://plplot.svn.sourceforge.net/plplot/?rev=9417&view=rev Author: smekal Date: 2009-01-30 10:08:22 +0000 (Fri, 30 Jan 2009) Log Message: ----------- Example 3 produces now same results as other examples. Modified Paths: -------------- trunk/examples/lua/x03.lua Modified: trunk/examples/lua/x03.lua =================================================================== --- trunk/examples/lua/x03.lua 2009-01-30 02:38:01 UTC (rev 9416) +++ trunk/examples/lua/x03.lua 2009-01-30 10:08:22 UTC (rev 9417) @@ -66,8 +66,8 @@ pl.col0(2) -for i=0, 11 do - theta = 30 * i +for i=1, 12 do + theta = 30 * (i-1) dx = math.cos(dtr * theta) dy = math.sin(dtr * theta) @@ -96,7 +96,7 @@ -- Draw the graph for i=1, 361 do - r = math.sin(dtr * (5 * i-1)) + r = math.sin(dtr * (5*(i-1))) x[i] = x0[i] * r y[i] = y0[i] * r end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ```