How to change gap between legend line and legend text?

조회 수: 16 (최근 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 CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by