Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Ticks on dual axis ...
Date: Tue, 17 Jun 2008 02:03:38 +0000 (UTC)
Organization: VA Palo Alto Health Care System
Lines: 37
Message-ID: <g3761q$3pi$1@fred.mathworks.com>
References: <fja7ik$4fg$1@fred.mathworks.com> <fjac16$5sr$1@fred.mathworks.com> <fjaj5h$bll$1@fred.mathworks.com> <fjbmn2$egl$1@fred.mathworks.com> <fs8rd3$b0f$1@fred.mathworks.com> <fs98mg$5u$1@fred.mathworks.com> <g2lvf6$321$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1213668218 3890 172.30.248.38 (17 Jun 2008 02:03:38 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 Jun 2008 02:03:38 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 835677
Xref: news.mathworks.com comp.soft-sys.matlab:474131



You just need the axes handle.
So this should work:
[AX,H1,H2] = PLOTYY(...)

Left
set(AX(1),'ytick',[]);
Right one
set(AX(2),'ytick',[]);

"Onur Kerimoglu" <onurkerim@gmail.com> wrote in message
<g2lvf6$321$1@fred.mathworks.com>...
> "someone " <someone@somewhere.net> wrote in message
> <fs98mg$5u$1@fred.mathworks.com>...
> > "Joseph MacGregor" <blah@blah.com> wrote in message <fs8rd3
> > $b0f$1@fred.mathworks.com>...
> > > It would be a lot easier on everyone if there was simply a
> > > axis property switch to turn off the ticks on one side,
> > > rather than force the use of an awkward function like 
> > plotyy.
> > > 
> > > Thanks,
> > > 
> > > Joe
> > 
> > Once you have a handle to the Y axis you want, just set its 
> > Ytick property to an empty vector, [].
> 
> Of course that would work, but only if it was that straight
> forward to get the handle of the specific 'axis' (not the
> axes). Indeed, i found it very surprising that tick marks on
> the opposite side is not optional as Joe also mentioned. And
> plotyy function is not really taking care of different sets
> of tick marks occuring at the same axis, as been claimed.
> So, only solution left is that we have to arrange tick
> spacings such that they overlap, a solution which cannot be
> automatized easily..