Boxplot - Size of the Labels

18 ビュー (過去 30 日間)
Berk
Berk 2012 年 9 月 19 日
回答済み: Gaurav 2014 年 9 月 26 日
Hi,
I am trying to use boxplot function by adjusting the size of the labels. Here is an example from Matlab:
load carsmall
boxplot(MPG,Origin)
Now, I want to increase the size of the labels. I found out that this can be done via the commands;
labelSize = 24; %size of the label
set(findobj(gca,'Type','text'),'FontSize',labelSize);
However, this results in the x-axis striking through the labels. Is there a way to increase the size of the labels in boxplot without making the x-axis strikethrough the labels?
Thanks in advance.

採用された回答

Laura Proctor
Laura Proctor 2012 年 9 月 19 日
set(findobj(gca,'Type','text'),'VerticalAlignment','top')
  1 件のコメント
Berk
Berk 2012 年 9 月 19 日
Thank you very much..

サインインしてコメントする。

その他の回答 (1 件)

Gaurav
Gaurav 2014 年 9 月 26 日
axes('FontSize',18);
this much is enough. I have tried and it worked.

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by