[Scilab-users] Fill plot line properties into a list
Samuel Gougeon
sgougeon at free.fr
Sun Jun 3 10:44:19 CEST 2018
Hello Jens,
Le 02/06/2018 à 22:31, Jens Simon Strom a écrit :
> Hello Scilab intimates,
>
> The lines
>
> Cspec=list('Color','r','thickness',5);
> plot(1:5,Cspec(:))
>
> are functional, but the lines
>
> Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5);
>
> plot([1:5],Cspec(:))
>
> are not. What has to be changed?
>
> I would like to use line specifying lists as function input arguments.
As a workaround, you may use the following:
plot(1:5)
Cspec =
list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5);
set(gce().children, Cspec(:))
Regards
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180603/06c4b6d8/attachment.htm>
More information about the users
mailing list