[Scilab-users] Fill plot line properties into a list
Rafael Guerra
jrafaelbguerra at hotmail.com
Sun Jun 3 01:33:06 CEST 2018
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 of GlobalProperty 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180602/9ce1ca67/attachment.htm>
More information about the users
mailing list