Boxplot - Size of the Labels

조회 수: 11 (최근 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.

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by