Boxplot - Size of the Labels

13 visualizaciones (últimos 30 días)
Berk
Berk el 19 de Sept. de 2012
Respondida: Gaurav el 26 de Sept. de 2014
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.

Respuesta aceptada

Laura Proctor
Laura Proctor el 19 de Sept. de 2012
set(findobj(gca,'Type','text'),'VerticalAlignment','top')
  1 comentario
Berk
Berk el 19 de Sept. de 2012
Thank you very much..

Iniciar sesión para comentar.

Más respuestas (1)

Gaurav
Gaurav el 26 de Sept. de 2014
axes('FontSize',18);
this much is enough. I have tried and it worked.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by