How to make the y-axis closer from each other when using addaxis ?

3 ビュー (過去 30 日間)
LIU
LIU 2022 年 3 月 21 日
コメント済み: LIU 2022 年 3 月 22 日
Hi all, It is quite useful for me to use this tool when plotting 7 lines into one graph with 7 y-axis displayed. I am encoutered with one problem, each y-axis is too far away from each other just as what shows on the right side of the figure attached, but I need a much more compact one just as what shows on the left side. I don't know how to set or modify the options of the addaxis function to get a compact y-axis layout, could anyone kindly help me ? Many thanks.
Best regards,
LIU

採用された回答

Ankit
Ankit 2022 年 3 月 21 日
編集済み: Ankit 2022 年 3 月 21 日
You can change the value of variable "axcompleft" according to your requirement in addaxis.m file (code line: 95) . Default value is 0.12
axcompleft=0.05;

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by