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 16:18:02 +0000 (UTC)
Organization: Sherbrooke
Lines: 29
Message-ID: <gjtbrq$n5a$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> <gjsgtb$pk6$1@fred.mathworks.com> <gjt6sg$9j6$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 1231172282 23722 172.30.248.37 (5 Jan 2009 16:18:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 Jan 2009 16:18:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 894239
Xref: news.mathworks.com comp.soft-sys.matlab:509861


Thank you very much Steve. I'm okay now.


"Steven Lord" <slord@mathworks.com> wrote in message <gjt6sg$9j6$1@fred.mathworks.com>...
> 
> "Et'o Pat" <patmbom@hotmail.com> wrote in message 
> news:gjsgtb$pk6$1@fred.mathworks.com...
> >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'
> 
> Call PLOTYY with three output arguments, combine the last two (the handles 
> to the lines etc. in the plot) into a vector, and call LEGEND with that 
> vector as the first input.  This is the syntax "legend(h, ...)" given in 
> HELP LEGEND.
> 
> -- 
> Steve Lord
> slord@mathworks.com 
>