Path: news.mathworks.com!not-for-mail
From: Gautam Vallabha <Gautam.Vallabha@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: image in axes: making grid visible
Date: Wed, 22 Aug 2007 16:27:51 -0400
Organization: The MathWorks
Lines: 21
Message-ID: <MPG.213666551dbff450989685@news.mathworks.com>
References: <1187742962.261037.112010@m37g2000prh.googlegroups.com> <MPG.21362e8c3090a3a989681@news.mathworks.com> <1187811035.598550.327550@z24g2000prh.googlegroups.com> <1187811455.531528.178200@j4g2000prf.googlegroups.com>
NNTP-Posting-Host: vallabhag.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1187814471 12225 144.212.219.54 (22 Aug 2007 20:27:51 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Aug 2007 20:27:51 +0000 (UTC)
User-Agent: MicroPlanet-Gravity/2.70.2067
Xref: news.mathworks.com comp.soft-sys.matlab:425044



In article <1187811455.531528.178200@j4g2000prf.googlegroups.com>, 
runcyclexcski@yahoo.com says...
> ... interestingly, it does work with the clown image. But it does not
> work with mine.
> 
> I load my image like this:
> 
> frame_image = image('cdata',myMatrix,'cdatamapping','scaled');

Change the 'Layer' property of the axis (This puts the grid 
lines on top of the image);
-----------
 load clown.mat;
 image('cdata', X, 'cdatamapping','scaled');
 grid on; axis tight;
 set(gca, 'layer', 'top');
 set(gca, 'xcolor', 'w', 'ycolor', 'w');
-----------

--
Gautam