# HG changeset patch # User Jaroslav Hajek # Date 1243406266 -7200 # Node ID 06518194dba0854e47be2da32ca150fcb2651840 # Parent a9c4aece8c2aad8c4861b17a24a5ad4c98d6c0a3 fix displaying indexed images diff -r a9c4aece8c2a -r 06518194dba0 scripts/ChangeLog --- a/scripts/ChangeLog Wed May 27 07:43:20 2009 +0200 +++ b/scripts/ChangeLog Wed May 27 08:37:46 2009 +0200 @@ -1,3 +1,7 @@ +2009-05-27 Jaroslav Hajek + + * plot/imshow.m: Fix handling of indexed images. + 2009-05-26 Søren Hauberg * help/__makeinfo__.m: Support several @seealso's in one text. diff -r a9c4aece8c2a -r 06518194dba0 scripts/image/imshow.m --- a/scripts/image/imshow.m Wed May 27 07:43:20 2009 +0200 +++ b/scripts/image/imshow.m Wed May 27 08:37:46 2009 +0200 @@ -160,8 +160,8 @@ im(im > 1) = 1; endif - if (true_color) - tmp = __img__ ([], [], im); + if (true_color || indexed) + tmp = image ([], [], im); else tmp = image (round ((rows (colormap ()) - 1) * im)); endif