필터 지우기
필터 지우기

How to increase the distance between labels on the matrix axes

조회 수: 1 (최근 30일)
Jacinta Silva
Jacinta Silva 2022년 7월 23일
댓글: Jacinta Silva 2022년 7월 23일
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.
  댓글 수: 2
Matt J
Matt J 2022년 7월 23일
Do you really need a label for every row and column? how does it help you to haev so many?
Jacinta Silva
Jacinta Silva 2022년 7월 23일
Yes, in my case it is accurate, because I am working with brain regions, so it is important to interpret the values between each pair (row/column).

댓글을 달려면 로그인하십시오.

답변 (1개)

the cyclist
the cyclist 2022년 7월 23일
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.
  댓글 수: 1
Jacinta Silva
Jacinta Silva 2022년 7월 23일
Yes, exactly, I reduced the font size to a size where it was noticeable to read, and it didn't work. I appreciate the help, I had already tried and it stays overlaped.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by