Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Ticks on dual axis ...
Date: Fri, 7 Dec 2007 09:52:18 -0500
Organization: The MathWorks, Inc.
Lines: 60
Message-ID: <fjbmn2$egl$1@fred.mathworks.com>
References: <fja7ik$4fg$1@fred.mathworks.com> <fjac16$5sr$1@fred.mathworks.com> <fjaj5h$bll$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1197039138 14869 144.212.105.187 (7 Dec 2007 14:52:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 7 Dec 2007 14:52:18 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
Xref: news.mathworks.com comp.soft-sys.matlab:441407




"Paul " <par@ceri.memphis.edu> wrote in message 
news:fjaj5h$bll$1@fred.mathworks.com...
> "Steven Lord" <slord@mathworks.com> wrote in message
> <fjac16$5sr$1@fred.mathworks.com>...
>>
>> "Paul " <par@ceri.memphis.edu> wrote in message
>> news:fja7ik$4fg$1@fred.mathworks.com...
>> > I'm plotting dual axis (left, right) and I need to
>> > selectively remove the tick marks from opposite axis or the
>> > plot looks like someone tried to zip together two unequal
>> > zippers.
>> >
>> > In other words, I only want ticks on the left hand side of
>> > the plot and NOT the right hand side  (and vice versa for
>> > the right had plot).
>> >
>> > Is there some kind of 'mirror' option in axes that will
>> > allow this?  I can't find anything and the only remaining
>> > option is to export to Adobe and treat/amend the figure as
>> > artwork.
>>
>> It sounds like you want PLOTYY.
>>
>> -- 
>> Steve Lord
>> slord@mathworks.com
>>
>>
>
> No ... I tired plotyy and found that I had lack of control
> over the axis.

The first output argument from PLOTYY contains the handles of the two axes 
it creates; from there, you can use just about any function that accepts an 
axes handle to control them.  [Performing certain operations (like changing 
the limits of one of the axes or zooming one axes) may cause the locations 
of the ticks on the two sides to fall out of sync.]

> All I want is to turn of the ticks on opposing axis!  Is
> that too much to ask from a plotting routine?

If you have the handles to your axes, modify the YTick and/or YTickLabel 
properties of those axes.  [I know the URL mentions XTick, but that section 
of the documentation talks about the three properties XTick, YTick, ZTick as 
a group since the only difference between the three is which axis they 
affect.]

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/axes_props.html#XTick

Note that if you want the ticks to be at exactly the same heights on the 
left and right sides of the axes, PLOTYY will perform that synchronization 
for you -- if you don't want to use PLOTYY, you will need to synchronize 
them.

-- 
Steve Lord
slord@mathworks.com