Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.mixmin.net!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: plotyy (change marker when plotting more than 2 sets)
Date: Thu, 12 Sep 2013 08:06:52 -0500
Organization: Aioe.org NNTP Server
Lines: 27
Message-ID: <l0se9t$cm8$1@speranza.aioe.org>
References: <3df83264-185d-42f3-90b0-eebae6564104@googlegroups.com>
NNTP-Posting-Host: eUpaX2JS7XTt//dvkm6CNQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:802292

On 9/12/2013 4:39 AM, Kapila Bandara wrote:
> x1 = [1:.1:40];
> y1 = 4.*(x1)./(x1+2);
> x2 = [1:.2:20];
> y2 = x2.^2./x2.^4;
>
> y3 = x2.^2./x2.^3;
>
> [haxes,H1,H2]=plotyy(x1,y1,x2,[y2.',y3.'],@loglog)
> hold on
> set(H1,'linestyle','none','marker','*','markerfacecolor','b','markersize',4)
> set(H2,'linestyle','none','marker','o','markerfacecolor','r','markersize',4)
>
> I want to display Y3 with another marker (diamond).

H2 is array of handles to the RH axis lines -- set properties for them 
individually as desired instead of en masse w/ the full array as did...

set(H2(1),'linestyle','none','marker','o',...
set(H2(2),'linestyle','none','marker','x',...

--