|
Le 23/02/2013 01:54, CRETE Denis a
écrit :
.../... I do not understand why it is not equivalent to refer to f1.children(1) or to refer to a1 ... Thank you for your help. Denis The following automatically splits nL legends if blocks of Lpc lines (if there are parasitic line-wrapping when receiving this sample, please correct them before running it. It is ok when sending it): clf nL = 40; // number of Legends Lpc = 15; // number of Lines per column names_legend = "legend_"+string(1:nL); x = 0; i = 1; j = min([Lpc, nL]); while i<=nL disp(i) legends(names_legend(i:j), i:j, font_size=3, opt="ul"< /span>< span style="color:rgb(74,85,219);">); idL = gce(); move(idL, [x,0]); w = strange(idL.children($).data(:,1)); // width of this block idL.children($).line_mode = "off"; // masks the frame x = x+w; // updates the position of next block i = i+Lpc; j = min([j+Lpc, nL]); endSamuel |
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users

