Boxplot Fontsize changes size of box?

10 visualizaciones (últimos 30 días)
Darax
Darax el 3 de Feb. de 2016
Respondida: Darax el 3 de Feb. de 2016
Hi All,
i have a question on boxplots and the Fontsize.
When i increase the fontsize with for example: set(gca,'FontWeight','bold','FontSize',13,'LineWidth',2);
The box of the boxplots gets smaller. Is there a way to set the font of the text without affecting the boxsize?
Thank you very much in advance!
Darax

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Feb. de 2016
Experiment with
set(gca, 'ActivePositionProperty', 'position', FontWeight','bold','FontSize',13,'LineWidth',2)
Normally the active mode is the OuterPosition, with the inner Position recomputed so as to be able to fit the labels within the OuterPosition boundaries, so when you increase the font size the axes box size (the Position property) can change. Possibly making the Position the active property it would instead resize the outer box or clip the text instead of resizing the inner box.

Más respuestas (1)

Darax
Darax el 3 de Feb. de 2016
That works !!!
Thank you so much!!

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by