[Scilab-users] Plot command line specification compressed to a variable

Jens Simon Strom j.s.strom at hslmg.de
Sun Sep 6 20:33:21 CEST 2015


Perfect solution! Thanks a lot!
Jens
--------------------------------------------------------------------------------------

Am 06.09.2015 17:25, schrieb Samuel Gougeon:
> Le 06/09/2015 16:28, Jens Simon Strom a écrit :
>>
>> I would like to replace the line specification in a plot command by a 
>> variable that can be used as an function input argument.  E. g. the line
>>
>> plot([1:4],[1:4], 
>> 'LineStyle','none','Marker','+','MarkForeground',[255;215;0]/256)
>>
>> should be replaced by
>>
>> plot([1:4],[1:4],LS)
>>
>> How should LS be constructed?
>>
> As a list:
> LS = 
> list(LineStyle','none','Marker','+','MarkForeground',[255;215;0]/256);
> used with the call:
> plot([1:4],[1:4], LS(:))   // do not remove ":"
>
> 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/20150906/bb08a8f9/attachment.htm>


More information about the users mailing list