From: <car...@us...> - 2011-09-27 14:13:16
|
Revision: 8617 http://octave.svn.sourceforge.net/octave/?rev=8617&view=rev Author: carandraug Date: 2011-09-27 14:13:05 +0000 (Tue, 27 Sep 2011) Log Message: ----------- geometry package: demo indetation fix to look nice on html Modified Paths: -------------- trunk/octave-forge/main/geometry/inst/data2geo.m trunk/octave-forge/main/geometry/inst/svgload.m trunk/octave-forge/main/geometry/inst/svgnormalize.m Modified: trunk/octave-forge/main/geometry/inst/data2geo.m =================================================================== --- trunk/octave-forge/main/geometry/inst/data2geo.m 2011-09-27 14:02:10 UTC (rev 8616) +++ trunk/octave-forge/main/geometry/inst/data2geo.m 2011-09-27 14:13:05 UTC (rev 8617) @@ -79,6 +79,6 @@ end %!demo -%! points = [0 0 0; 0.1 0 0; 0.1 .3 0; 0 0.3 0]; +%! points = [0 0 0; 0.1 0 0; 0.1 .3 0; 0 0.3 0]; %! strFile = data2geo(points,0.009); %! disp(strFile) Modified: trunk/octave-forge/main/geometry/inst/svgload.m =================================================================== --- trunk/octave-forge/main/geometry/inst/svgload.m 2011-09-27 14:02:10 UTC (rev 8616) +++ trunk/octave-forge/main/geometry/inst/svgload.m 2011-09-27 14:13:05 UTC (rev 8617) @@ -50,12 +50,12 @@ end %!demo -%! file = 'tmp__.svg'; -%! fid = fopen (file,'w'); +%! file = 'tmp__.svg'; +%! fid = fopen (file,'w'); %! svgfile = '<html><body><svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="250" width="250"><path d="M150,0 75,200 225,200 Z" /></svg></body></html>'; %! fprintf (fid,"%s\n",svgfile); %! fclose (fid); -%! SVG = svgload (file); +%! SVG = svgload (file); %! SVG %! plot([SVG.path.coord(:,1); SVG.path.coord(1,1)], ... %! [SVG.path.coord(:,2); SVG.path.coord(1,2)]); Modified: trunk/octave-forge/main/geometry/inst/svgnormalize.m =================================================================== --- trunk/octave-forge/main/geometry/inst/svgnormalize.m 2011-09-27 14:02:10 UTC (rev 8616) +++ trunk/octave-forge/main/geometry/inst/svgnormalize.m 2011-09-27 14:13:05 UTC (rev 8617) @@ -55,13 +55,13 @@ end %!demo -%! file = 'tmp__.svg'; -%! fid = fopen (file,'w'); +%! file = 'tmp__.svg'; +%! fid = fopen (file,'w'); %! svgfile = '<html><body><svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="250" width="250"><path d="M150,0 75,200 225,200 Z" /></svg></body></html>'; %! fprintf (fid,"%s\n",svgfile); %! fclose (fid); -%! SVG = svgload (file); -%! SVGn = svgnormalize (SVG); +%! SVG = svgload (file); +%! SVGn = svgnormalize (SVG); %! SVGn %! plot([SVGn.path.coord(:,1); SVGn.path.coord(1,1)], ... %! [SVGn.path.coord(:,2); SVGn.path.coord(1,2)]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |