Mercurial > hg > octave-lyh
diff scripts/plot/title.m @ 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 | fd0a3ac60b0e |
children | 79b9a7669bb8 |
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)