Subplot, 1 large and 2 small

조회 수: 183 (최근 30일)
Sarah Yun
Sarah Yun 2020년 1월 18일
댓글: Walter Roberson 2020년 1월 18일
Hello,
Is it possible to make a subplot that look like this:
What is code?

채택된 답변

Walter Roberson
Walter Roberson 2020년 1월 18일
subplot(2, 2, [1 3])
%draw for A
subplot(2, 2, 2)
%draw for B
subplot(2, 2, 4)
%draw for C
  댓글 수: 2
Sarah Yun
Sarah Yun 2020년 1월 18일
To add another box to the left, is the code:
subplot(3, 2, [1 3])
%draw for A
subplot(3, 2, 2)
%draw for B
subplot(3, 2, 4)
%draw for C
Walter Roberson
Walter Roberson 2020년 1월 18일
subplots are numbered along the rows. The first argument to subplot is the number of rows; the second is the number of columns; the third is which of them to select. If you wanted to add another box to the left, that would be another column, not another row. If the effect you were trying for was that the plot for A was twice as high and twice as wide as the other two, then
%{
1 | 2 | 3
---------
4 | 5 | 6
%}
subplot(2, 3, [1 2 4 5]) %2 x 2 to the left
%draw for A
subplot(2, 3, 3) %1 x 1 top right
%draw for B
subplot(2, 3, 6) %1 x 1 bottom right

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

추가 답변 (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