Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Ticks on dual axis ...
Date: Wed, 18 Jun 2008 01:29:03 +0000 (UTC)
Organization: VA Palo Alto Health Care System
Lines: 73
Message-ID: <g39ocv$f9s$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> <g37cvt$mv3$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 1213752543 15676 172.30.248.37 (18 Jun 2008 01:29:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 18 Jun 2008 01:29:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 835677
Xref: news.mathworks.com comp.soft-sys.matlab:474367



Sorry for that.
I don't know if that is what you are trying to do.
But you can turn the Box of the axes to off
So you can have something like.
plot(x,y);
set(gca,'box','off')
so you are going to see only one axes on the left.
set(gca,'YaxisLocation','right');
to move the axis to the right.



"Paul " <par@ceri.memphis.edu> wrote in message
<g37cvt$mv3$1@fred.mathworks.com>...
> 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..
> > 
>