<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737</link>
    <title>MATLAB Central Newsreader - bar same X-axis two Y axis</title>
    <description>Feed for thread: bar same X-axis two Y axis</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 30 Dec 2008 20:51:04 -0500</pubDate>
      <title>bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619320</link>
      <author>Et'o Pat</author>
      <description>I have two sets of data of different scales. From which I try draw a double bar chart. Because of the problem of  differents   scales, only one bar can be seen in the figure. One solution can be to normalized the data with large scale, but I wish to plot the bar with their real scales.&lt;br&gt;
&lt;br&gt;
Can you help me to draw a multi-bar with the same X-axis and two-Y axis such that the scale of the first Y-axis is for the first bar and the scale of the second one corresponds to the second bar.&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Wed, 31 Dec 2008 05:33:51 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619350</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gje1jo$4p4$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I have two sets of data of different scales. From which I try draw a double &lt;br&gt;
&amp;gt;bar chart. Because of the problem of  differents   scales, only one bar can &lt;br&gt;
&amp;gt;be seen in the figure. One solution can be to normalized the data with &lt;br&gt;
&amp;gt;large scale, but I wish to plot the bar with their real scales.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Can you help me to draw a multi-bar with the same X-axis and two-Y axis &lt;br&gt;
&amp;gt; such that the scale of the first Y-axis is for the first bar and the scale &lt;br&gt;
&amp;gt; of the second one corresponds to the second bar.&lt;br&gt;
&lt;br&gt;
Use the five- or six-input form of PLOTYY, specifying BAR as the function to &lt;br&gt;
use to plot on each axes.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Wed, 31 Dec 2008 07:28:06 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619359</link>
      <author>Et'o Pat</author>
      <description>Stev, Thanks for you quick answer. &lt;br&gt;
I'm not very good in informatic. Can you give write the code which allow  to draw the graph ?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gjf07v$3kc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gje1jo$4p4$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I have two sets of data of different scales. From which I try draw a double &lt;br&gt;
&amp;gt; &amp;gt;bar chart. Because of the problem of  differents   scales, only one bar can &lt;br&gt;
&amp;gt; &amp;gt;be seen in the figure. One solution can be to normalized the data with &lt;br&gt;
&amp;gt; &amp;gt;large scale, but I wish to plot the bar with their real scales.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Can you help me to draw a multi-bar with the same X-axis and two-Y axis &lt;br&gt;
&amp;gt; &amp;gt; such that the scale of the first Y-axis is for the first bar and the scale &lt;br&gt;
&amp;gt; &amp;gt; of the second one corresponds to the second bar.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Use the five- or six-input form of PLOTYY, specifying BAR as the function to &lt;br&gt;
&amp;gt; use to plot on each axes.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Wed, 31 Dec 2008 08:00:09 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619360</link>
      <author>Et'o Pat</author>
      <description>I have used this syntax,&lt;br&gt;
plotyy(x1, s, per,z, @bar, @bar),&lt;br&gt;
&lt;br&gt;
but an other problem occurs:  both bars overlaped.  How two separate them ?&lt;br&gt;
&lt;br&gt;
My best regard &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gjf07v$3kc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gje1jo$4p4$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I have two sets of data of different scales. From which I try draw a double &lt;br&gt;
&amp;gt; &amp;gt;bar chart. Because of the problem of  differents   scales, only one bar can &lt;br&gt;
&amp;gt; &amp;gt;be seen in the figure. One solution can be to normalized the data with &lt;br&gt;
&amp;gt; &amp;gt;large scale, but I wish to plot the bar with their real scales.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Can you help me to draw a multi-bar with the same X-axis and two-Y axis &lt;br&gt;
&amp;gt; &amp;gt; such that the scale of the first Y-axis is for the first bar and the scale &lt;br&gt;
&amp;gt; &amp;gt; of the second one corresponds to the second bar.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Use the five- or six-input form of PLOTYY, specifying BAR as the function to &lt;br&gt;
&amp;gt; use to plot on each axes.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Fri, 02 Jan 2009 19:32:52 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619604</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gjf8q9$cfm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I have used this syntax,&lt;br&gt;
&amp;gt; plotyy(x1, s, per,z, @bar, @bar),&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but an other problem occurs:  both bars overlaped.  How two separate them &lt;br&gt;
&amp;gt; ?&lt;br&gt;
&lt;br&gt;
Your message said, in part:&lt;br&gt;
&lt;br&gt;
&quot;Can you help me to draw a multi-bar with the same X-axis and two-Y axis &quot;&lt;br&gt;
&lt;br&gt;
If x1 and per overlap, so will the bars they plot (because they will be &lt;br&gt;
using the same X axis.)  You may want to write the calls to BAR as anonymous &lt;br&gt;
functions, and specify the width parameter to make the bars narrower.&lt;br&gt;
&lt;br&gt;
f1 = @(x, y) bar(x, y, 0.4);&lt;br&gt;
f2 = @(x, y) bar(x, y, 0.3); % even narrower&lt;br&gt;
plotyy(x1, s, per, z, f1, f2);&lt;br&gt;
&lt;br&gt;
*snip the rest*&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Sat, 03 Jan 2009 04:21:02 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619657</link>
      <author>Et'o Pat</author>
      <description>Thanks Steve and receives my best wish for the new year. &lt;br&gt;
&lt;br&gt;
The problem of scales is overcame  now, but it remains two lasts problems. &lt;br&gt;
&lt;br&gt;
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 ?&lt;br&gt;
&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
My best regards&lt;br&gt;
Pat.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gjlq54$9dp$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gjf8q9$cfm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I have used this syntax,&lt;br&gt;
&amp;gt; &amp;gt; plotyy(x1, s, per,z, @bar, @bar),&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; but an other problem occurs:  both bars overlaped.  How two separate them &lt;br&gt;
&amp;gt; &amp;gt; ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Your message said, in part:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Can you help me to draw a multi-bar with the same X-axis and two-Y axis &quot;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If x1 and per overlap, so will the bars they plot (because they will be &lt;br&gt;
&amp;gt; using the same X axis.)  You may want to write the calls to BAR as anonymous &lt;br&gt;
&amp;gt; functions, and specify the width parameter to make the bars narrower.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; f1 = @(x, y) bar(x, y, 0.4);&lt;br&gt;
&amp;gt; f2 = @(x, y) bar(x, y, 0.3); % even narrower&lt;br&gt;
&amp;gt; plotyy(x1, s, per, z, f1, f2);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; *snip the rest*&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 04:12:21 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619854</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gjmp3e$gea$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Thanks Steve and receives my best wish for the new year.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The problem of scales is overcame  now, but it remains two lasts problems.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; First, both bars have the same color. How to select the blue color for &lt;br&gt;
&amp;gt; example for the first bar, and the red color for the second bar ?&lt;br&gt;
&lt;br&gt;
Use the LINESPEC option for BAR or call PLOTYY with three outputs and SET &lt;br&gt;
the appropriate *Color properties for the second or third handles.&lt;br&gt;
&lt;br&gt;
&amp;gt; Second, the  X-axis has undesirable limit, I have tried to resolve this by &lt;br&gt;
&amp;gt; using the code Xlimit([-1, 31]), unfortunately, without sucess. How to &lt;br&gt;
&amp;gt; resolve this problem?&lt;br&gt;
&lt;br&gt;
You would need to use XLIM (or SET the XLimit property) for both the axes &lt;br&gt;
whose handles are returned as the first output of PLOTYY in order to change &lt;br&gt;
the X limits for both the left- and right-hand axes (and to keep them &lt;br&gt;
synchronized.)  Alternately, linking them (using LINKAXES or LINKPROP) and &lt;br&gt;
changing one should work.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 07:11:06 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619868</link>
      <author>Et'o Pat</author>
      <description>Thank you very much Steve. My problem is okay now!!!&lt;br&gt;
&lt;br&gt;
My best regards.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gjs1b5$9bn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gjmp3e$gea$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Thanks Steve and receives my best wish for the new year.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The problem of scales is overcame  now, but it remains two lasts problems.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; First, both bars have the same color. How to select the blue color for &lt;br&gt;
&amp;gt; &amp;gt; example for the first bar, and the red color for the second bar ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Use the LINESPEC option for BAR or call PLOTYY with three outputs and SET &lt;br&gt;
&amp;gt; the appropriate *Color properties for the second or third handles.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Second, the  X-axis has undesirable limit, I have tried to resolve this by &lt;br&gt;
&amp;gt; &amp;gt; using the code Xlimit([-1, 31]), unfortunately, without sucess. How to &lt;br&gt;
&amp;gt; &amp;gt; resolve this problem?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You would need to use XLIM (or SET the XLimit property) for both the axes &lt;br&gt;
&amp;gt; whose handles are returned as the first output of PLOTYY in order to change &lt;br&gt;
&amp;gt; the X limits for both the left- and right-hand axes (and to keep them &lt;br&gt;
&amp;gt; synchronized.)  Alternately, linking them (using LINKAXES or LINKPROP) and &lt;br&gt;
&amp;gt; changing one should work.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 08:38:04 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619870</link>
      <author>Et'o Pat</author>
      <description>I think,  I celebrated the end of this program before.  &lt;br&gt;
&lt;br&gt;
Right now my code answer to several of my questions. But it remains only one problem: the lengend.&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
How to set up the code of the lengend so that it displays both : 'chacoal' and  'trace'  &lt;br&gt;
&lt;br&gt;
Receives my best regards .&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &amp;lt;gjsbqa$4sl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thank you very much Steve. My problem is okay now!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; My best regards.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gjs1b5$9bn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; news:gjmp3e$gea$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks Steve and receives my best wish for the new year.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; The problem of scales is overcame  now, but it remains two lasts problems.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; First, both bars have the same color. How to select the blue color for &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; example for the first bar, and the red color for the second bar ?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Use the LINESPEC option for BAR or call PLOTYY with three outputs and SET &lt;br&gt;
&amp;gt; &amp;gt; the appropriate *Color properties for the second or third handles.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Second, the  X-axis has undesirable limit, I have tried to resolve this by &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; using the code Xlimit([-1, 31]), unfortunately, without sucess. How to &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; resolve this problem?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; You would need to use XLIM (or SET the XLimit property) for both the axes &lt;br&gt;
&amp;gt; &amp;gt; whose handles are returned as the first output of PLOTYY in order to change &lt;br&gt;
&amp;gt; &amp;gt; the X limits for both the left- and right-hand axes (and to keep them &lt;br&gt;
&amp;gt; &amp;gt; synchronized.)  Alternately, linking them (using LINKAXES or LINKPROP) and &lt;br&gt;
&amp;gt; &amp;gt; changing one should work.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt; Steve Lord&lt;br&gt;
&amp;gt; &amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 14:53:04 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619909</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gjsgtb$pk6$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I think,  I celebrated the end of this program before.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Right now my code answer to several of my questions. But it remains only &lt;br&gt;
&amp;gt; one problem: the lengend.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I tried to set up the legend by using the code:  legend('chacoal', &lt;br&gt;
&amp;gt; 'trace')  but only chacoal appears on the legend (so the legend doesn't &lt;br&gt;
&amp;gt; display ' trace '   )  when I run my program.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How to set up the code of the lengend so that it displays both : 'chacoal' &lt;br&gt;
&amp;gt; and  'trace'&lt;br&gt;
&lt;br&gt;
Call PLOTYY with three output arguments, combine the last two (the handles &lt;br&gt;
to the lines etc. in the plot) into a vector, and call LEGEND with that &lt;br&gt;
vector as the first input.  This is the syntax &quot;legend(h, ...)&quot; given in &lt;br&gt;
HELP LEGEND.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 16:18:02 -0500</pubDate>
      <title>Re: bar same X-axis two Y axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241737#619915</link>
      <author>Et'o Pat</author>
      <description>Thank you very much Steve. I'm okay now.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gjt6sg$9j6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Et'o Pat&quot; &amp;lt;patmbom@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gjsgtb$pk6$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I think,  I celebrated the end of this program before.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Right now my code answer to several of my questions. But it remains only &lt;br&gt;
&amp;gt; &amp;gt; one problem: the lengend.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I tried to set up the legend by using the code:  legend('chacoal', &lt;br&gt;
&amp;gt; &amp;gt; 'trace')  but only chacoal appears on the legend (so the legend doesn't &lt;br&gt;
&amp;gt; &amp;gt; display ' trace '   )  when I run my program.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; How to set up the code of the lengend so that it displays both : 'chacoal' &lt;br&gt;
&amp;gt; &amp;gt; and  'trace'&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Call PLOTYY with three output arguments, combine the last two (the handles &lt;br&gt;
&amp;gt; to the lines etc. in the plot) into a vector, and call LEGEND with that &lt;br&gt;
&amp;gt; vector as the first input.  This is the syntax &quot;legend(h, ...)&quot; given in &lt;br&gt;
&amp;gt; HELP LEGEND.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; </description>
    </item>
  </channel>
</rss>

