Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
13088:4ffea87ad71b | 13089:87015276d625 |
---|---|
35 else | 35 else |
36 print_usage (); | 36 print_usage (); |
37 endif | 37 endif |
38 | 38 |
39 endfunction | 39 endfunction |
40 | |
41 %!demo | |
42 %! clf (); | |
43 %! ax=axes(); | |
44 %! xl = get(ax,"title"); | |
45 %! title("Testing title") | |
46 %! assert(get(xl,"string"),"Testing title") | |
47 | |
48 %!demo | |
49 %! clf (); | |
50 %! plot3 ([0,1], [0,1], [0,1]); | |
51 %! xl = get(gca (), "title"); | |
52 %! title("Testing title") | |
53 %! assert(get(xl,"string"),"Testing title") | |
54 | |
55 ## Remove from test statistics. No real tests possible. | |
56 %!assert (1) |