<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 08/01/2020 à 19:30, Perrichon a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:!&!AAAAAAAAAAAuAAAAAAAAAHTRbxuKTONJuQv%2FnFKuTP8BANlTnCJhprtFudq2LHCBs8EBACQA%2F%2F8AABAAAADmNLhRH2FwRptWRBwTHNp1AQAAAAA=@wanadoo.fr">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1904289566;
mso-list-type:hybrid;
mso-list-template-ids:-887322218 67895313 67895321 67895323 67895311 67895321 67895323 67895311 67895321 67895323;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</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">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When drawing scope X(t) with multiple
chanels, is there a way to get a horizontal legend to
maximalize the graphic area (as matlab does)<o:p></o:p></p>
<p class="MsoNormal">All proposal for the legend positionning
reduce the graphic area (vertical display with box or no box)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1">Legend are
into the graphic. Some curves are not visible<o:p></o:p></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1">Legend are
out of graphic, but reduces the graphic area.<o:p></o:p></li>
</ol>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><img style="width:1.1166in;height:1.0in"
id="Image_x0020_1" src="cid:part1.F825ADAF.5372DB8E@free.fr"
class="" width="107" height="96"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best Regards<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Pierre P.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<p><br>
</p>
<div class="moz-cite-prefix">legend_mc() aims to do that:
<a class="moz-txt-link-freetext" href="https://fileexchange.scilab.org/toolboxes/274000">https://fileexchange.scilab.org/toolboxes/274000</a></div>
<div class="moz-cite-prefix"><br>
</div>
<p><font size="-1"><tt>--> legends_mc</tt><tt><br>
</tt><tt>function [] =
legends_mc(Texts,Styles,Lpc,font_size,thickness,pos,framed?)</tt><tt><br>
</tt><tt> For many curves & related legends, displays a
multicolumn bloc of legends:</tt><tt><br>
</tt><tt> - The shape of the bloc can be specified (Lpc)</tt><tt><br>
</tt><tt> - Positionning with Logarithmic or/and reversed axes
is supported</tt><tt><br>
</tt><tt> - Lines styles and Markers styles are supported and
can be mixed.</tt><tt><br>
</tt><tt> A set of polyline handles or having polyline
children can be</tt><tt><br>
</tt><tt> alternatively provided</tt><tt><br>
</tt><tt> - Lines thickness(es) can be specified (ignored if
handles are </tt><tt><br>
</tt><tt> given: read out from the polylines properties)</tt><tt><br>
</tt><tt><br>
</tt><tt> HELP: run legends_mc() without any parameter</tt><tt><br>
</tt><tt> DEMO: run legends_mc(..) without specifying Texts</tt><tt><br>
</tt><tt><br>
</tt><tt> Texts : vector of legends</tt><tt><br>
</tt><tt> Styles : a) vector of related lines or markers styles
(integer indices)</tt><tt><br>
</tt><tt> Styles(i)>0 -> line color (only solid
style supported)</tt><tt><br>
</tt><tt> -14<= Styles(i) <=0 -> marker
(overlay with line unsupported)</tt><tt><br>
</tt><tt> b) (2,n) matrix: </tt><tt><br>
</tt><tt> Styles(1,:) = as in a)</tt><tt><br>
</tt><tt> Styles(2,:) = line style, or color of
marker</tt><tt><br>
</tt><tt> c) vector of graphical handles. Then all
Polyline children</tt><tt><br>
</tt><tt> are searched (in chronological order of
creation).</tt><tt><br>
</tt><tt> Texts must have as many entries as there
are available</tt><tt><br>
</tt><tt> polylines.</tt><tt><br>
</tt><tt> If only 1 handle is given and is an axes,
the legends is </tt><tt><br>
</tt><tt> set in this axes. When returning, the focus
is restored </tt><tt><br>
</tt><tt> to the axes priorly active.</tt><tt><br>
</tt><tt> If a set of handles or an handle not being
an axes is given,</tt><tt><br>
</tt><tt> the legends are set in the currently active
axes.</tt><tt><br>
</tt><tt> Default Styles : gca()</tt><tt><br>
</tt><tt> Lpc>0 : (maximal) number of Lines Per Column
(integer)</tt><tt><br>
</tt><tt> Lpc<0 : -(maximal) number of Columns per line
(integer)</tt><tt><br>
</tt><tt> framed? : boolean: if %T, draws the global box of
legends (default)</tt><tt><br>
</tt><tt> pos : position of the block:</tt><tt><br>
</tt><tt> "ur" | 1 : in the upper right corner (default)</tt><tt><br>
</tt><tt> "ul" | 2 : in the upper left corner</tt><tt><br>
</tt><tt> "ll" | 3 : in the lower left corner</tt><tt><br>
</tt><tt> "lr" | 4 : in the lower right corner</tt><tt><br>
</tt><tt> "?" | 5 : interactive positionning with the
mouse</tt><tt><br>
</tt><tt> [xr,yr]: relative coordinates 0 <= xr,yr <=
1 of the upper left </tt><tt><br>
</tt><tt> corner of the block, with respect to the upper
left corner</tt><tt><br>
</tt><tt> of the data bounds area. [0,0] is equivalent
to "ul"</tt><tt><br>
</tt><tt> thickness: scalar or vector of lines thickness. </tt><tt><br>
</tt><tt> If a vector is provided, its length must =
Styles one.</tt><tt><br>
</tt><tt> If styles are from handles, thickness
vector is ignored.</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> DEMOS: run legends_mc(..) without Texts of legends:</tt><tt><br>
</tt><tt> clf, legends_mc( framed?=%f )</tt><tt><br>
</tt><tt> clf, legends_mc( Lpc=7, pos="?" )</tt><tt><br>
</tt><tt> clf, legends_mc( Lpc=-3, pos="lr" )</tt><tt><br>
</tt><tt> clf, legends_mc( Lpc=-2, pos=[0.15 0.3] )</tt><tt><br>
</tt><tt> clf, legends_mc( font_size=2, pos="ll" )</tt><tt><br>
</tt><tt> clf, legends_mc( pos="?", thickness=2 )</tt><tt><br>
</tt><tt> clf, legends_mc( pos="lr",
thickness=1+round(rand(1:19)) )</tt><tt><br>
</tt><tt> clf, plot2d(), legends_mc( Lpc=-3, pos="ll" )</tt><tt><br>
</tt><tt> clf, plot(), f=gcf();
legends_mc(Styles=f.children($), pos="?")</tt><tt><br>
</tt><tt><br>
</tt><tt> EXAMPLE: </tt><tt><br>
</tt><tt> clf, plot2d(), legends_mc("line #"+string(1:3),
Lpc=-3, pos="?" )</tt><tt><br>
</tt></font><br>
</p>
</body>
</html>