how to change the x axis names using corrplot)()

39 ビュー (過去 30 日間)
Yuanyuan Luan
Yuanyuan Luan 2020 年 4 月 30 日
編集済み: Samatha Aleti 2020 年 5 月 12 日
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!!

採用された回答

Samatha Aleti
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
  1 件のコメント
Yuanyuan Luan
Yuanyuan Luan 2020 年 5 月 11 日
Thank you so much! It worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by