How to change gap between legend line and legend text?

26 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Legend 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by