[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot change the font size in legend

From: Markus Mützel
Subject: Re: cannot change the font size in legend
Date: Mon, 20 Jan 2020 16:41:49 +0100

Am 20. Januar 2020 um 15:57 Uhr schrieb "Francesco Potortì":
> One more doubt:
> octave> plot(1:2)
> octave> legend({"aa"}, 'fontsize', 0.1, 'fontunits', 'normalized')
> This is supposed to create a legend whose text is 10% of the plot size,
> right?
> As far as I can see, it does not: the text is very small.

AFAIK, the legend is implemented as its own axes object. So your command
probably sets the font to 10% of the *legend* height, not the parent *axes* 

Fwiw, Matlab doesn't have a "FontUnits" property for legend objects.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]