Mercurial > hg > octave-nkf
comparison scripts/plot/newplot.m @ 13204:be7bfd59300a
Add tests for scripts/plot
(plot/figure.m, plot/ishold.m, plot/ishold.m, plot/newplot.m): Add tests.
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Fri, 23 Sep 2011 22:18:05 +0200 |
parents | b0084095098e |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
13203:b6aba5b4edb1 | 13204:be7bfd59300a |
---|---|
62 else | 62 else |
63 print_usage (); | 63 print_usage (); |
64 endif | 64 endif |
65 | 65 |
66 endfunction | 66 endfunction |
67 | |
68 %!test | |
69 %! hf = figure ("visible", "off"); | |
70 %! unwind_protect | |
71 %! p = plot ([0, 1]); | |
72 %! newplot; | |
73 %! assert (isempty (get (gca, "children"))); | |
74 %! unwind_protect_cleanup | |
75 %! close (hf); | |
76 %! end_unwind_protect |