how to change the x axis names using corrplot)()
조회 수: 34 (최근 30일)
이전 댓글 표시
I am trying to plot a correlation matrix between( "Energy","Protein","Sugar","Fiber","Fat","Alcohol") using corrplot(). But it seems like there is a limitation for the length of Varibale names on the x axis. For example "Engerg" instead of "Energy" shows on the plot.
I am wondering if there anything I can do to fix that. I am new to Matlab. So, I really dont know what to do now.
Thanks!!
댓글 수: 0
채택된 답변
Samatha Aleti
2020년 5월 4일
편집: Samatha Aleti
2020년 5월 12일
Hi,
The behavior is expected as mentioned here, In “corrplot” the axis label names (i.e., Variable names) are truncated to 5 characters.
If you want to edit the label names of the plot obtained using “corrplot”, you can do it interactively with the plot by turning on the edit mode as follows:
plotedit on
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!