How to shrink legend without shrinking font size

조회 수: 47 (최근 30일)
Önundur Ragnarsson
Önundur Ragnarsson 2019년 1월 7일
답변: Vishal Chaudhary 2019년 1월 10일
Hi,
I'm making a combo chart in Matlab, using plot, bar and scatter. I have attached it for you to see.
I would like to make the legend smaller. The only scope for shrinking it seems to be by shrinking the markers for the first three legend entries, i.e. the black and grey bars, and the blue line. Do they have to be so long? Can I make them shorter?
Thanks in advance!

답변 (1개)

Vishal Chaudhary
Vishal Chaudhary 2019년 1월 10일
There is no particular attribute to shrink legend without changing font-size.
Try using:
l = legend
l.NumColumns = 2;
Other attributes like "Location" can be used to adjust the position of 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