Mercurial > octave
diff doc/interpreter/geometryimages.m @ 7262:16e61aecddc1
[project @ 2007-12-05 20:50:47 by jwe]
author | jwe |
---|---|
date | Wed, 05 Dec 2007 20:50:47 +0000 |
parents | e8a3e3e33490 |
children | 3422f39573b1 |
line wrap: on
line diff
--- a/doc/interpreter/geometryimages.m Wed Dec 05 19:00:22 2007 +0000 +++ b/doc/interpreter/geometryimages.m Wed Dec 05 20:50:47 2007 +0000 @@ -26,6 +26,8 @@ || strcmp (nm, "convhull") || strcmp (nm, "delaunay") || strcmp (nm, "triplot"))) sombreroimage (nm, typ); + elseif (strcmp (typ, "txt")) + image_as_txt (nm); elseif (strcmp (nm, "voronoi")) rand("state",9); x = rand(10,1); @@ -194,3 +196,13 @@ end_unwind_protect endif endfunction + +## generate something for the texinfo @image command to process +function image_as_txt(nm) + fid = fopen (sprintf ("%s.txt", nm), "wt"); + fputs (fid, "\n"); + fputs (fid, "+---------------------------------+\n"); + fputs (fid, "| Image unavailable in text mode. |\n"); + fputs (fid, "+---------------------------------+\n"); + fclose (fid); +endfunction