Mercurial > hg > octave-shane
changeset 13089:87015276d625
codesprint: demos for title
* title.m: New demos.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 03 Sep 2011 18:28:58 -0400 |
parents | 4ffea87ad71b |
children | 7f127e079a7c |
files | scripts/plot/title.m |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/title.m +++ b/scripts/plot/title.m @@ -37,3 +37,20 @@ endif endfunction + +%!demo +%! clf (); +%! ax=axes(); +%! xl = get(ax,"title"); +%! title("Testing title") +%! assert(get(xl,"string"),"Testing title") + +%!demo +%! clf (); +%! plot3 ([0,1], [0,1], [0,1]); +%! xl = get(gca (), "title"); +%! title("Testing title") +%! assert(get(xl,"string"),"Testing title") + +## Remove from test statistics. No real tests possible. +%!assert (1)