Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: bar same X-axis two Y axis
Date: Mon, 5 Jan 2009 07:11:06 +0000 (UTC)
Organization: Sherbrooke
Lines: 35
Message-ID: <gjsbqa$4sl$1@fred.mathworks.com>
References: <gje1jo$4p4$1@fred.mathworks.com> <gjf07v$3kc$1@fred.mathworks.com> <gjf8q9$cfm$1@fred.mathworks.com> <gjlq54$9dp$1@fred.mathworks.com> <gjmp3e$gea$1@fred.mathworks.com> <gjs1b5$9bn$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 1231139466 5013 172.30.248.38 (5 Jan 2009 07:11:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 Jan 2009 07:11:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 894239
Xref: news.mathworks.com comp.soft-sys.matlab:509814


Thank you very much Steve. My problem is okay now!!!

My best regards.



"Steven Lord" <slord@mathworks.com> wrote in message <gjs1b5$9bn$1@fred.mathworks.com>...
> 
> "Et'o Pat" <patmbom@hotmail.com> wrote in message 
> news:gjmp3e$gea$1@fred.mathworks.com...
> > Thanks Steve and receives my best wish for the new year.
> >
> > The problem of scales is overcame  now, but it remains two lasts problems.
> >
> > First, both bars have the same color. How to select the blue color for 
> > example for the first bar, and the red color for the second bar ?
> 
> Use the LINESPEC option for BAR or call PLOTYY with three outputs and SET 
> the appropriate *Color properties for the second or third handles.
> 
> > Second, the  X-axis has undesirable limit, I have tried to resolve this by 
> > using the code Xlimit([-1, 31]), unfortunately, without sucess. How to 
> > resolve this problem?
> 
> You would need to use XLIM (or SET the XLimit property) for both the axes 
> whose handles are returned as the first output of PLOTYY in order to change 
> the X limits for both the left- and right-hand axes (and to keep them 
> synchronized.)  Alternately, linking them (using LINKAXES or LINKPROP) and 
> changing one should work.
> 
> -- 
> Steve Lord
> slord@mathworks.com 
>