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 12:29:50 -0400
Organization: The MathWorks
Lines: 26
Message-ID: <MPG.21362e8c3090a3a989681@news.mathworks.com>
References: <1187742962.261037.112010@m37g2000prh.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 1187800190 25116 144.212.219.54 (22 Aug 2007 16:29:50 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Aug 2007 16:29:50 +0000 (UTC)
User-Agent: MicroPlanet-Gravity/2.70.2067
Xref: news.mathworks.com comp.soft-sys.matlab:424988



In article <1187742962.261037.112010@m37g2000prh.googlegroups.com>, 
runcyclexcski@yahoo.com says...
> I display an image in an axes, and I want the grid in the axes and the
> tickmarks pointing inwards being visible, i.e. being on top of the
> image. But the image always covers up the grid and the tickmarks. Is
> there any way to avoid that? I found a workaround by displaying the
> tickmarks outward, but with the grid there is no workaround. I looked
> in this group and in help and did not find anything. Matlab 6p5, about
> to upgrade to R2007.

You can try changing the color of the grid and the axis.

----------
 load clown.mat
 figure; 
 image(X); colormap(map)

 set(gca,'tickdir','in')
 set(gca,'xcolor','w', 'ycolor', 'w');
 % another way to set the color
 set(gca,'xcolor', [1 1 0], ...
         'ycolor', [1 1 0]);
----------

--
Gautam