Le 23/02/2013 13:24, Samuel Gougeon a écrit :
Le 23/02/2013 13:18, Samuel Gougeon a écrit :
Here is a simpler, working and likely more robust sample:
Strange bug when copying/pasting from Scinotes...
Here is the right sample (double checked ;):
.../...
// Display 2nd block
legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size
=3,opt="ul"); // on top of first

Aaarrr..! If this one turns to not be okay after being sent,
please correct wrong line-wrapping by hand:

clf
nc  =  40;
names_legend  =  'legend_'+string(1:nc);
nc1  =  ceil(nc/2);   //nc is the number of curves: split in 2
legends(names_legend(1:nc1),  1:nc1,font_size=3,opt="ul");// put first column 
of legends
// Get the width of this block:
idL1  =  gce();
tmp  =  idL1.children($).data(:,1);
width  =  max(tmp)-min(tmp);
// Display 2nd block
legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size=3,opt="ul");  //  on top 
of first
move(gce(),[width,0]);  //Move it horizontally (along x-axis);


_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to