필터 지우기
필터 지우기

Reducing width of legend

조회 수: 4 (최근 30일)
Abed Alnaif
Abed Alnaif 2011년 10월 23일
Hi, I am producing graphs for a report where space is a very limited ressource (2-page limit). I noticed that Matlab adds some extra whitespace between the text inside of a legend and the right border of the legend. Especially when the font size of the text within the legend is 8, there is quite a bit of unnecessary whitespace. Is there a way to remove this whitespace? Matlab would not let me drag the right border of the legend passed a certain extent. I also tried to change the 'width' of the 'Position' property of the legend, but for some reason this only causes the legend to move to a different location, and doesn't change the width.

답변 (1개)

Abed Alnaif
Abed Alnaif 2011년 10월 23일
Never mind -- I just figured out a solution. For some reason, setting the 'Units' property to 'pixels' allows one to freely resize the legend.

카테고리

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