[Scilab-users] Legend of markers in Plot3d
Dang, Christophe
Christophe.Dang at sidel.com
Thu May 16 09:51:32 CEST 2013
Hello,
________________________________
De la part de linebergmann
Envoyé : jeudi 16 mai 2013 09:14
> Now I would like to not only have the style of the marker in my legend
> but also the color
You can do this by torturing the handles.
Unfortunately, this does not seem to be documented...
By tries and errors, I found out that the legend is represented by a
matrix of handles, called hereafter leg.children
You can see which handle correspond to which graphical element with
leg.children(n).visible="off"
Once you have identified them, everything is "quite simple".
Then try the following
// **********
legends(['error1';'error2'], [-e02.mark_style -e4.mark_style], "ur");
leg=gce();
leg.children(4).mark_foreground = e02.mark_foreground;
leg.children(4).mark_background = e02.mark_background;
leg.children(2).mark_foreground = e4.mark_foreground;
leg.children(2).mark_background = e4.mark_background;
// **********
Best regards
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the users
mailing list