How to change gap between legend line and legend text?

40 ビュー (過去 30 日間)
Mr M.
Mr M. 2016 年 10 月 26 日
回答済み: selcuk 2020 年 6 月 28 日
How to change (horizontal) gap between legend line and legend text?

採用された回答

Thorsten
Thorsten 2016 年 10 月 26 日
You can increase the space by adding blanks ' ' in front of the legend entries. This is a hack, of course.

その他の回答 (2 件)

Rani V.S
Rani V.S 2016 年 10 月 26 日
編集済み: Rani V.S 2016 年 10 月 26 日
https://in.mathworks.com/help/matlab/ref/legend-properties.html Hope that this documentation will help you

selcuk
selcuk 2020 年 6 月 28 日
Horizontal space commands in latex can be used:
leg1 = legend('$\bar{x}\>$','$\tilde{x}\quad$','$\hat{x}\hspace{5mm}$');
set(leg1,'Interpreter','latex');

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by