<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</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 22/10/2019 à 09:02, Perrichon a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:!&!AAAAAAAAAAAuAAAAAAAAAHTRbxuKTONJuQv%2FnFKuTP8BANlTnCJhprtFudq2LHCBs8EBACQA%2F%2F8AABAAAABIC7uR8j%2FbSqRLgpnpVe7CAQAAAAA=@wanadoo.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<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:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.tlid-translation
{mso-style-name:tlid-translation;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></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"><span style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Thanks
you for your response<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I
mainly plot curves for bode, nyquist plans, et also time
response curves with csim.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">With
csim, curves are plotted using plot2d. So the problem is
very easy to solve :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">
simulation=csim(in, t, SYS_FTBF );<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">
plot2d(t' , [in'
simulation'],rect=[0,ymin_Temp,tmax,ymax_Temp],style=TColor);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">where
TColor=[2 3 5 4 6 16 5 15];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I
suppose that 2, 3 …are index in a Color Table by
default. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I
have no solution to colorize curves with bode or nyquist,
exept to acces to children(xx).foreground=TColot(i)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">where
i is the curve number.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span class="tlid-translation"><span
lang="EN">That's what I wanted to avoid</span></span></p>
</div>
</blockquote>
<p>There is no need to use an external loop on i:<br>
</p>
<p>// After the bode() 's first example:<br>
curves = gcf().children.children.children;<br>
curves.foreground = color("orange");<br>
curves.thickness = 2;</p>
<p><img src="cid:part1.4888A1F8.F7939915@free.fr" alt="" class=""
width="371" height="293"></p>
<p>// After the second bode()'s example :</p>
<p>curves = gcf().children.children.children<br>
o = color("orange"); g = color("green");<br>
curves.foreground = [o g o g];<br>
curves.thickness = 2;<br>
</p>
<p><img src="cid:part2.5628E4FF.971602E3@free.fr" alt="" class=""
width="434" height="350"></p>
<br>
<b>Using handles on curves looks more powerful than adding a style
option to bode().</b><b><br>
</b><b> </b>Handles enable tuning all the properties of curves,
including their thicknesses, etc,<br>
what would require several separate bode's options.<br>
Also, handles allow to set properties of any subset of selected
curves, while in options<br>
a special value would be required to tell "do not change the value
for this curve".<br>
<br>
However, after calling bode(), we could expect that gce() returns<br>
curves = gcf().children.children.children<br>
while presently bode() does not set gce() at all.<br>
This wish would deserve a post in bugzilla.<br>
<br>
<b>For the Nyquist plot</b>: presently, addressing graphical
elements is more complex.<br>
<span style="mso-fareast-language:EN-US"><o:p></o:p></span><br>
Regards<br>
Samuel<br>
</body>
</html>