Mercurial > hg > octave-lyh
changeset 17435:15d592c82abc
test: Add test for bug #40036 to axis.m
* scripts/plot/axis.m: Add test for bug #40036 to axis.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 16 Sep 2013 09:38:06 -0700 |
parents | aa380b380315 |
children | 9304514b566c |
files | scripts/plot/axis.m |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -610,3 +610,16 @@ %! close (hf); %! end_unwind_protect +## Test 'axis tight' with differently oriented, differently numbered data vecs +## Bug #40036. +%!test +%! hf = figure ("visible", "off"); +%! unwind_protect +%! Z = peaks (linspace (-3, 3, 49), linspace (-2, 2, 29)); +%! surf (Z); +%! axis tight; +%! assert (axis (), [1 49 1 29 min(Z(:)) max(Z(:))]); +%! unwind_protect_cleanup +%! close (hf); +%! end_unwind_protect +