Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using imagesc() function

18 views
Skip to first unread message

Jason

unread,
Apr 20, 2010, 11:29:04 AM4/20/10
to
Hello, is there anyway to change the background color whenever I use imagesc() function? I'm doing a powerpoint presentation that required showing results that I got from imagesc() but I been told the background is too dark and it's hard to see the black line and with dark blue background, it's hard to see it. I have tried using colormap, but if that's doesn't show the result as clearly as I wanted to, what else can I do?

Walter Roberson

unread,
Apr 20, 2010, 1:09:47 PM4/20/10
to
Jason wrote:
> Hello, is there anyway to change the background color whenever I use
> imagesc() function?

imagesc() creates an object of type image on an axis. To change the
background color, change the color of the axis that is the parent of the
image. For example,

set(gca,'Color','white')


However, if I recall correctly, the default axis color is already white,
so perhaps you mean something completely different by "background
color". Perhaps you are talking about a feature of the image, rather
than the background the image is placed against. If that is the case,
then if the image is indexed, you could change the colormap; however, if
the image is true-color (has R, G, B per point) then you would have to
change the colors in the image itself.

0 new messages