[Scilab-users] Font size adjustment of legend

Lester Anderson arctica1963 at gmail.com
Mon Jan 11 23:53:24 CET 2016


Hello,

Thanks for the pointers. The LaTex formatting you suggested Samuel did
not work, but the following change suggested by Serge did:

L=legend(['$T_e\ = 5\ km$', '$T_e\ = 10\ km$', '$T_e\ = 25\ km$'],4);
L.font_size=4
xlabel('$Distance\ (km)$','fontsize',5.5)
ylabel('$Flexure\ (m)$','fontsize',5.5)
title('$Flexure\ for\ a\ Broken\ Plate\ Model$','fontsize',5.5)

As before the legend is set at bottom right and the font_size will now
change it up or down.

It is a bit confusing having different methods of doing this in
Scilab, but the code does what it should. It does seem that the
formatting is not consistent between axis labels and legends.

Thanks




On 11 January 2016 at 21:24, Samuel Gougeon <sgougeon at free.fr> wrote:
> Hello,
>
> Le 11/01/2016 17:31, Lester Anderson a écrit :
>>
>> Hello,
>>
>> I am having issues getting the font size to change for just the
>> legend. I have managed to alter the size for the axis and title. Also,
>> should both legend and legends work for the same task?
>
> You may expect and vote for http://bugzilla.scilab.org/5371
>>
>> I tried to use
>> legends and set the opt=4 (lower right position) and font_size=4, but
>> it did not seem to work.
>
> The legends of your example look to be LaTeXed ones, between "$...$".
> In that case, AFAIK, the LaTeX fonts sizes are not set accordingly w.r.t.
> Scilab attributes.
> You must use LaTeX instructions tuning LaTeX fonts, such as
> \scalebox{scale}{...}, or
> \DeclareMathSizes{textSize}{mathTextSize}{scriptSize}{subscriptSize} with
> sizes expressed in pt, etc
>
> For instance, try "$\scalebox{1.2}{T_e\,=\,0\km}$"
>
> HTH
> Samuel Gougeon
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list