필터 지우기
필터 지우기

How to redeuce the blank space in the legend box?

조회 수: 4 (최근 30일)
Leo Pio D'Adderio
Leo Pio D'Adderio 2017년 6월 6일
댓글: Karl_469 2022년 11월 17일
I am using the latest version of Matlab (R2017a). I would to reduce the blank space in the box legend of a plot. In the previous Matlab version you could use command like this "set(leg,'PlotBoxAspectRatio',[1 0.25 1]);". It seems that is not anymore allowed in R2017a. Am I wrong? Is anyone able to suggest me a solution? Many thanks.
Leo Pio

답변 (1개)

Kushagr Gupta
Kushagr Gupta 2017년 6월 9일
You can use the 'Position' property of legend to modify the size of the legend box. The documentation for legend properties is available at:
  댓글 수: 1
Karl_469
Karl_469 2022년 11월 17일
from my experience, you cannot reduce whitespace inbetween marker and text using position property, right?
Yet, I would argue that this is one of the main issues regarding the need to reduce white space in the legend.
I can see why this thread has no accepted answers,yet.
Any updates since 2017?

댓글을 달려면 로그인하십시오.

카테고리

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