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 04:02:05 +0000 (UTC)
Organization: University of Memphis
Lines: 52
Message-ID: <g37cvt$mv3$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> <g3761q$3pi$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1213675325 23523 172.30.248.37 (17 Jun 2008 04:02:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 Jun 2008 04:02:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 233092
Xref: news.mathworks.com comp.soft-sys.matlab:474135



Read the previous messages carefully.  We are talking about
turning the tick marks off/on on opposing axis for a simple
plot (plot(x,y), e.g. left hand y-axis has ticks and right
hand y-axis does not.  At present, then cannot be easily
achieved in Matlab.




"Zhelyazko " <tumbev@va51.stanford.edu> wrote in message
<g3761q$3pi$1@fred.mathworks.com>...
> 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..
>