How to change gap between legend line and legend text?

28 Ansichten (letzte 30 Tage)
Mr M.
Mr M. am 26 Okt. 2016
Beantwortet: selcuk am 28 Jun. 2020
How to change (horizontal) gap between legend line and legend text?

Akzeptierte Antwort

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

Weitere Antworten (2)

Rani V.S
Rani V.S am 26 Okt. 2016
Bearbeitet: Rani V.S am 26 Okt. 2016
https://in.mathworks.com/help/matlab/ref/legend-properties.html Hope that this documentation will help you

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

Community Treasure Hunt

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

Start Hunting!

Translated by