[scilab-Users] legend, legends and friends

Samuel GOUGEON Samuel.Gougeon at univ-lemans.fr
Tue Aug 31 18:24:04 CEST 2010


  Hello Mathieu,

----- Message d'origine -----
De : Mathieu Dubois
Date : 31/08/2010 17:25:
> Any idea?
>
 >I would like to avoid manual placement.
What do you mean? You may compute from your data x & y coordinates
where you want to put the legend() (it should not be so bad), or put them
in an interactive way (what is not really nice, i agree).

Before calling legend(), you may enlarge the right margin of the axes :
ca=gca();
ca.margins(2)=0.25;  // or even more, in relative coordinates with respect to 
the axes width = 1
legend([ <all your legends>,-1)   // It works for me on the plot2d() sample

Regards
Samuel





More information about the users mailing list