diff scripts/image/imshow.m @ 7315:3ceb12c499e9

[project @ 2007-12-13 21:35:36 by jwe]
author jwe
date Thu, 13 Dec 2007 21:35:36 +0000
parents 87151f298e6a
children 359f464342b3
line wrap: on
line diff
--- a/scripts/image/imshow.m
+++ b/scripts/image/imshow.m
@@ -149,7 +149,7 @@
   endif
 
   ## Scale the image to the interval [0, 1] according to display_range.
-  if (! indexed || islogical (im))
+  if (! (true_color || indexed || islogical (im)))
     low = display_range(1);
     high = display_range(2);
     im = (im-low)/(high-low);
@@ -158,10 +158,11 @@
   endif
 
   if (true_color)
-    tmp = __img__ ([] , [], im);
+    tmp = __img__ ([], [], im);
   else
     tmp = image (round ((rows (colormap ()) - 1) * im));
   endif
+  set (gca (), "visible", "off");
 
   if (nargout > 0)
     h = tmp;