Boxplot X-axis change label size
Ältere Kommentare anzeigen
Dear all,
I've been googling and trying all sorts of things to get my label a proper size from a boxplot. The 'names' on the x-axis are obtained from the excel that is loaded ( boxplot(num(:,1),txt(:,1)) ). However i can't get the text to increase in size.. not even with figure editor..
Can anybody please help me
Added is the figure i am talking about

9 Kommentare
jonas
am 27 Mär. 2018
You have tried the following?
set(gca,'fontsize',15)
Twevers
am 27 Mär. 2018
jonas
am 27 Mär. 2018
That's weird. The source of the data should not matter. I could give it a try if you upload the data (or part of it) and code.
Twevers
am 28 Mär. 2018
jonas
am 28 Mär. 2018
The following code gives me the figure below.
[num,txt,raw] = xlsread('boxplot.xls', 'Sheet1');
boxplot(num(:,1),txt(:,1))
set(gca,'fontsize',15)
xtickangle(45)
Are you creating another set of axis when you are plotting the mean values?

Twevers
am 28 Mär. 2018
Bearbeitet: Walter Roberson
am 28 Mär. 2018
jonas
am 28 Mär. 2018
Hello!
I'm not sure that I fully understand the problem. The size of the ticklabels can be changed by adjusting the 'fontsize' of the current axis. What exactly is the issue?
Twevers
am 28 Mär. 2018
jonas
am 28 Mär. 2018
We've all been there, happy that it worked out :)
Antworten (0)
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!