필터 지우기
필터 지우기

Giving multiple subplots the same size

조회 수: 7 (최근 30일)
Rudy
Rudy 2015년 4월 28일
댓글: dpb 2015년 4월 28일
Hi everyone,
I try to plot 6 plots into one figure using subplot. The problem is, that the sizes of each subplot are not the same. Some are slightly wider, others slightly thinner. Is there a command that forces the subplots to all have the same size?
Kind regards, Rudy
  댓글 수: 1
dpb
dpb 2015년 4월 28일
That's surprising--can you show a sample code snippet that illustrates the issue? By default they will be the same size (within floating point precision of the width/height values). Perhaps your changing display properties so that margins around different axes aren't the same as legend or [x|y]label or the like make some room?
You can check on the actual size/position for each with
doc getpos

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by