How to increase the distance between labels on the matrix axes
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I have a matrix with dimensions 169x169. For each row of the matrix a label is associated. However, since there are 169 labels, they are on top of each other. I tried to solve this by making the font size smaller, but it didn't work. How can i solve this problem?
The image depicts how my matrix looks like.
Thank you in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1074980/image.png)
2 Kommentare
Matt J
am 23 Jul. 2022
Do you really need a label for every row and column? how does it help you to haev so many?
Antworten (1)
the cyclist
am 23 Jul. 2022
When you say that making the font size smaller "didn't work", can you be more specific? Do you mean that even with the smallest font size, the labels still overlap?
Angling the label may help a little:
x = [1 2 3];
y = [4 5 6];
plot(x,y)
xtickangle(30)
ytickangle(30)
But, there is only so much you can do with that many labels.
Siehe auch
Kategorien
Mehr zu Axis Labels 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!