boxplot XTick label size

12 Ansichten (letzte 30 Tage)
Carlos Minjarez
Carlos Minjarez am 3 Mär. 2011
Kommentiert: desword jacky am 11 Dez. 2016
Hi Matlab Users I have a problem with the boxplot function. I am doing the following:
axes('FontSize', 18,'FontName','arial');
boxplot(R,'labels',{'cocos','sandias','melones'})
la problem here is that XTickmark size does not chage to 18 points size while the YTickmark it does.
Do you have any idea of how I can fix this?
Thanks
carlos

Antworten (2)

Walter Roberson
Walter Roberson am 3 Mär. 2011
set(findobj(gca,'Type','text'),'FontSize',18)
boxplot() uses the default axes labeling for the Y axes, but for the X axes, it uses text() to put the labels in place and it does not grab the axes FontSize when it does so.
Note: it is likely that with an 18 point font that the labels will overlap the y=0 axes.
  5 Kommentare
Peng Zhong
Peng Zhong am 26 Aug. 2014
thank you,Nick. Very helpful.
desword jacky
desword jacky am 11 Dez. 2016
how to deal with the overlapping between the xticklabel and xlabel when the fontsize is 25?

Melden Sie sich an, um zu kommentieren.


Sav Deb
Sav Deb am 29 Nov. 2012
How to do the same but in Property Editor

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by