Mercurial > octave
changeset 22170:20257791e358
avoid displaying plots in axis tests (bug #48602)
* axis.m: Make figures genrated by "%!error" tests invisible.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 23 Jul 2016 14:49:54 -0400 |
parents | b3ced5e3cebb |
children | 0a4c5a90f286 |
files | scripts/plot/appearance/axis.m |
diffstat | 1 files changed, 17 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/axis.m Fri Mar 25 14:28:40 2016 +1100 +++ b/scripts/plot/appearance/axis.m Sat Jul 23 14:49:54 2016 -0400 @@ -643,5 +643,20 @@ %! close (hf); %! end_unwind_protect -%!error<LIMITS vector must have .* elements> axis (1:5) -%!error<expecting no args, or a numeric vector with .* elements> axis ({1,2}) +## Even on errors, axis can display a figure. + +%!error<LIMITS vector must have .* elements> +%! hf= figure ("visible", "off"); +%! unwind_protect +%! axis (1:5) +%! unwind_protect_cleanup +%! close (hf); +%! end_unwind_protect + +%!error<expecting no args, or a numeric vector with .* elements> +%! hf= figure ("visible", "off"); +%! unwind_protect +%! axis ({1,2}) +%! unwind_protect_cleanup +%! close (hf); +%! end_unwind_protect