<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Rafael,<br>
      <br>
      Le 27/02/2013 01:43, Rafael Guerra a écrit :<br>
    </div>
    <blockquote cite="mid:DUB101-ds163C425E5DB1326AB23B8CCFD0@phx.gbl"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#993366;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="4098" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">.../...<br>
        <span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">I
          think it is important  to be able to place the plot legends
          automatically and to have the option but not be obliged to do
          it manually.<o:p></o:p></span>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">For
            instance, the example below was generated automatically
            using the legend command and allowing for some extra margin
            at the top of the plot area: <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Courier
            New";color:windowtext">ax.margins(3)=0.3;   // upper
            margin<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Courier
            New";color:windowtext">legend(names_legend, -5);  //
            upper caption<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><figure></span><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">The
            legends were chopped off but I think that with all the
            insight you provided, we can adapt your "legends_mc"
            function in order to create a sister "legend_mc" function;
            automated using the "legend" command, the width of the
            legend blocks and the plot margins property,  so that we do
            not need to manually position the legends outside the plots.</span></p>
      </div>
    </blockquote>
    legends_mc() already allows automatic positionnings (see the list of
    features<br>
    <a class="moz-txt-link-freetext" href="https://fileexchange.scilab.org/toolboxes/274000">https://fileexchange.scilab.org/toolboxes/274000</a> )<br>
    legend() (singular) does not allow multicolumn blocs, because only 1
    legend() child <br>
    and with a single column is allowed and can be attached to each
    axes: next calls to <br>
    legend() replace the previous bloc.<br>
    <br>
    I was wondering about improving the legending for a long time: <br>
    <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=5371">http://bugzilla.scilab.org/show_bug.cgi?id=5371</a><br>
    <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=6966">http://bugzilla.scilab.org/show_bug.cgi?id=6966</a><br>
    and other reports. <br>
    I hope that this legends_mc() should improve a bit the situation.<br>
    <br>
    Regards<br>
    Samuel<br>
  </body>
</html>