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 08:38:04 +0000 (UTC)
Organization: Sherbrooke
Lines: 47
Message-ID: <gjsgtb$pk6$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> <gjsbqa$4sl$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231144684 26246 172.30.248.35 (5 Jan 2009 08:38:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 Jan 2009 08:38:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 894239
Xref: news.mathworks.com comp.soft-sys.matlab:509816


I think,  I celebrated the end of this program before.  

Right now my code answer to several of my questions. But it remains only one problem: the lengend.

I tried to set up the legend by using the code:  legend('chacoal', 'trace')  but only chacoal appears on the legend (so the legend doesn't display ' trace '   )  when I run my program.

How to set up the code of the lengend so that it displays both : 'chacoal' and  'trace'  

Receives my best regards .


"Et'o Pat" <patmbom@hotmail.com> wrote in message <gjsbqa$4sl$1@fred.mathworks.com>...
> 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 
> >