Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change font size of legend? #12

Open
shadowfox87 opened this issue Mar 24, 2019 · 1 comment
Open

How to change font size of legend? #12

shadowfox87 opened this issue Mar 24, 2019 · 1 comment

Comments

@shadowfox87
Copy link

I have a boxplot as follows:

ax=iosr.statistics.boxPlot(y,'showLegend',true);

ax.handles.legend.FontSize=10; %This line doesn't work even after changing it.

I even tried going into the function and adding
set(obj.handles.legend,'FontSize',16); % in line 1977 (where the legend is created)

but all this does is make the legend box bigger, not the font..

@chummersone
Copy link
Contributor

This is nothing to do with MatlabToolobox, but a well-documented shortcoming of recent Matlab versions. A potential solution here: https://mathworks.com/matlabcentral/answers/313678-how-do-i-change-the-font-in-my-legend-possible-bug

A quick search for matlab legend font size reveals other users who have had this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants