comparison scripts/image/image.m @ 18622:3283ce934648 stable

Set only 'axis tight' for image functions and Matlab compatibility (bug #42043, bug #41886) * image.m: Use 'axis tight' instead of 'axis image' for Matlab compatibility. * imagesc.m: Delete special case of turning off 'axis equal' after call to image().
author Rik <rik@octave.org>
date Fri, 04 Apr 2014 11:40:40 -0700
parents bf0d2e51c8f0
children 1fc22871bd8b
comparison
equal deleted inserted replaced
18618:c644cfa9cb3b 18622:3283ce934648
182 if (do_new && ! ishold (hax)) 182 if (do_new && ! ishold (hax))
183 ## Set axis properties for new images 183 ## Set axis properties for new images
184 184
185 if (! isempty (img)) 185 if (! isempty (img))
186 if (isscalar (get (hax, "children"))) 186 if (isscalar (get (hax, "children")))
187 axis (hax, "image") 187 axis (hax, "tight");
188 endif 188 endif
189 189
190 if (ndims (img) == 3) 190 if (ndims (img) == 3)
191 if (isinteger (img)) 191 if (isinteger (img))
192 cls = class (img); 192 cls = class (img);