[Scilab-users] Fill plot line properties into a list
Jens Simon Strom
j.s.strom at hslmg.de
Sun Jun 3 10:15:26 CEST 2018
Hi Rafael,
Thanks! Not as simple as I hoped, but it works.
Regards
Jens
------------------------------------------------------------------------------------------------------------------------------
Am 03.06.2018 01:33, schrieb Rafael Guerra:
>
> Hi Jen,
>
> Several of the arguments you would like to use do not seem to be valid
> GlobalProperty members for plot().
>
> Maybe you could use a function that takes as input a proper graphics
> handle and your list.
>
> Herein a quick and dirty example:
>
> ///START OF CODE/
> function _gce_list_(*h*,*list0*)
> n = length(*list0*);
> if modulo(n,2)<>0 then
> printf("\nIncorrect number ofGlobalProperty arguments!\n")
> return;
> end
> for i=1:n/2
> *h*(*list0*(2*i-1)) = *list0*(2*i);
> end
> endfunction
>
> x=1:10;
> plot(x);
> h=gce().children;
> Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',10);
> _gce_list_(h,Cspec)
> ///END OF CODE/
>
> Regards,
>
> Rafael
>
>
>
> _______________________________________________
> 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/f6850674/attachment.htm>
More information about the users
mailing list