changeset 11656:86bf8c2c3fc1 release-3-0-x

imshow.m: use axis ("image")
author John W. Eaton <jwe@octave.org>
date Thu, 21 Feb 2008 04:30:27 -0500
parents 4bfe1ab20e99
children 6c413446e087
files scripts/ChangeLog scripts/image/imshow.m
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Feb 21 03:59:42 2008 -0500
+++ b/scripts/ChangeLog	Thu Feb 21 04:30:27 2008 -0500
@@ -1,5 +1,8 @@
 2008-02-21  John W. Eaton  <jwe@octave.org>
 
+	* image/imshow.m: Call axis ("image").
+	From Michael G. Ross <mgross@MIT.EDU>.
+
 	* plot/errorbar.m: If nargout > 0, return vector of handles to
 	line objects.
 	* plot/__go_draw_axes__.m: Improve handling of line style for
--- a/scripts/image/imshow.m	Thu Feb 21 03:59:42 2008 -0500
+++ b/scripts/image/imshow.m	Thu Feb 21 04:30:27 2008 -0500
@@ -166,6 +166,7 @@
     tmp = image (round ((rows (colormap ()) - 1) * im));
   endif
   set (gca (), "visible", "off");
+  axis ("image");
 
   if (nargout > 0)
     h = tmp;