[scilab-Users] color of a string
sgougeon at free.fr
sgougeon at free.fr
Thu Apr 5 15:38:25 CEST 2012
>Thank you Adrien, this works fine; is there a way to change the color of several strings at the same time
>instead of repeating the sequence xstring(), e = gce(),e.font_foreground = n for each ?
>JP Grivet
It is possible if the color is the same for all the strings
you want to address in a once. Here is an example:
plot([0 1],[0,1])
for i=0:4, xstring(0.1,0.4+i*0.1,ascii(i+65)); end
ax = gca();
ax.children(1:5).font_foreground = color('red');
If colors are different, AFAIK there is no possibility
to assign them "handle-wise".
Regards
Samuel
More information about the users
mailing list