[Scilab-users] Fill plot line properties into a list

Jens Simon Strom j.s.strom at hslmg.de
Sun Jun 3 18:09:48 CEST 2018


Great,Samuel!
Now my script looks much better.

Thanks with kind regards

Jens
---------------------------------------------------------------------
Am 03.06.2018 11:26, schrieb Samuel Gougeon:
> 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.
>
> Presently, plot() accepts only "plot-like" properties names and values.
> I agree that this is an issue, due to some wishes to make Scilab just 
> a shadow of another language.
>
> plot-like equivalences exist for some properties, but not for all, and 
> some features are not documented.
> The following code works and does what you aim to do:
>
> Cspec = 
> list('linestyle','none','marker','+','markforeground','r','marksize',5);
> plot([1:5],Cspec(:))
>
> Regards
> Samuel
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180603/b6e2745c/attachment.htm>


More information about the users mailing list