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

14 Ansichten (letzte 30 Tage)
Yuanyuan Luan
Yuanyuan Luan am 30 Apr. 2020
Bearbeitet: Samatha Aleti am 12 Mai 2020
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!!

Akzeptierte Antwort

Samatha Aleti
Samatha Aleti am 4 Mai 2020
Bearbeitet: Samatha Aleti am 12 Mai 2020
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

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots 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!

Translated by