Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: bar same X-axis two Y axis
Date: Mon, 5 Jan 2009 09:53:04 -0500
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <gjt6sg$9j6$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>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1231167184 9830 144.212.105.187 (5 Jan 2009 14:53:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 Jan 2009 14:53:04 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:509855



"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