Mercurial > hg > octave-lojdl
changeset 8117:40aa36406a94
Fix for display_range in imshow
author | Kris Thielemans |
---|---|
date | Thu, 18 Sep 2008 10:46:47 -0400 |
parents | 6c69f5cda32b |
children | 311c9b36df8f |
files | scripts/ChangeLog scripts/image/imshow.m |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,7 @@ 2008-09-18 Kris Thielemans <kris.thielemans@csc.mrc.ac.uk> + * image/imshow.m: Fix for display_range. + * general/interpn.m: Fixe for extrapval and documentation of extrapval.
--- a/scripts/image/imshow.m +++ b/scripts/image/imshow.m @@ -103,7 +103,7 @@ elseif (ischar (arg)) switch (arg) case "displayrange"; - displayrange = varargin{narg++}; + display_range = varargin{narg++}; case {"truesize", "initialmagnification"} warning ("image: zoom argument ignored -- use GUI features"); otherwise @@ -115,10 +115,10 @@ endif endwhile - ## Set default display range. + ## Set default display range if display_range not set yet. if (isempty (display_range)) display_range = [min(im(:)), max(im(:))]; - else + elseif (isna (display_range)) t = class (im); switch (t) case {"double", "single", "logical"}