[Scilab-users] Format legends of a graph as a 2D table

Samuel Gougeon sgougeon at free.fr
Thu Feb 28 00:06:08 CET 2013


Hello Rafael,

Le 27/02/2013 01:43, Rafael Guerra a écrit :
> .../...
> I think it is important  to be able to place the plot legends 
> automatically and to have the option but not be obliged to do it manually.
>
> For instance, the example below was generated automatically using the 
> legend command and allowing for some extra margin at the top of the 
> plot area:
>
> ax.margins(3)=0.3;   // upper margin
>
> legend(names_legend, -5);  // upper caption
>
> <figure>
>
> The legends were chopped off but I think that with all the insight you 
> provided, we can adapt your "legends_mc" function in order to create a 
> sister "legend_mc" function; automated using the "legend" command, the 
> width of the legend blocks and the plot margins property,  so that we 
> do not need to manually position the legends outside the plots.
>
legends_mc() already allows automatic positionnings (see the list of 
features
https://fileexchange.scilab.org/toolboxes/274000 )
legend() (singular) does not allow multicolumn blocs, because only 1 
legend() child
and with a single column is allowed and can be attached to each axes: 
next calls to
legend() replace the previous bloc.

I was wondering about improving the legending for a long time:
http://bugzilla.scilab.org/show_bug.cgi?id=5371
http://bugzilla.scilab.org/show_bug.cgi?id=6966
and other reports.
I hope that this legends_mc() should improve a bit the situation.

Regards
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130228/966d6e64/attachment.htm>


More information about the users mailing list