<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 02/06/2018 à 22:31, Jens Simon Strom
a écrit :<br>
</div>
<blockquote cite="mid:5B12FE9B.30006@hslmg.de" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
Hello Scilab intimates,<br>
<br>
The lines<br>
<br>
<font face="Courier New, Courier, monospace"><span
style="font-style: italic;">Cspec=list(</span><span
style="font-style: italic;">'</span><span style="font-style:
italic;">Color</span><span style="font-style: italic;">'</span><span
style="font-style: italic;">,</span><span style="font-style:
italic;">'</span><span style="font-style: italic;">r</span><span
style="font-style: italic;">'</span><span style="font-style:
italic;">,</span><span style="font-style: italic;">'</span><span
style="font-style: italic;">thickness</span><span
style="font-style: italic;">'</span><span style="font-style:
italic;">,5);</span> <span style="font-style: italic;"><br>
plot(1:5,Cspec(:))</span><br>
</font><br>
are functional, but the lines<br>
<br>
<font face="Courier New, Courier, monospace">Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5);
<br>
<span style="text-decoration: underline;">plot</span>([1:5],Cspec(:))
</font><br>
<br>
are not. What has to be changed?<br>
<br>
I would like to use line specifying lists as function input
arguments.<br>
</blockquote>
<br>
Presently, plot() accepts only "plot-like" properties names and
values.<br>
I agree that this is an issue, due to some wishes to make Scilab
just a shadow of another language.<br>
<br>
plot-like equivalences exist for some properties, but not for all,
and some features are not documented.<br>
The following code works and does what you aim to do:<br>
<br>
<tt>Cspec = list('linestyle','none','marker','+','markforeground',</tt><tt>'r'</tt><tt>,'marksize',5);
</tt><tt><br>
</tt><tt> </tt><tt><span style="text-decoration: underline;">plot</span></tt><tt>([1:5],Cspec(:))
</tt><tt><br>
</tt><tt> </tt><br>
Regards<br>
Samuel<br>
<br>
</body>
</html>