Enclosing Multiple Subplots in a Box
이전 댓글 표시
I have a subplot that looks as follows:
+-+-+-+-+
|A|A|B|B|
+-+-+-+-+
|A|A|B|B|
+-+-+-+-+
|C|D|E|F|
+-+-+-+-+
I want to enclose plots A,C,D and B,E,F in boxes (to show these plots are "grouped" together).
How do I do this (using commands -- not using the plotting window)? thanks!
답변 (1개)
Fangjun Jiang
2019년 10월 30일
편집: Fangjun Jiang
2019년 10월 30일
In the figure window, click "Insert", "Rectangle".
Or
% Create figure
figure1 = figure;
% Create subplot
subplot(4,4,1,'Parent',figure1);
% Create subplot
subplot(4,4,16,'Parent',figure1);
% Create rectangle
annotation(figure1,'rectangle',...
[0.0193673469387755 0.0571428571428572 0.489816326530612 0.930612244897968]);
댓글 수: 3
Yugarshi Mondal
2019년 10월 30일
편집: Yugarshi Mondal
2019년 10월 30일
Yugarshi Mondal
2019년 10월 30일
편집: Yugarshi Mondal
2019년 10월 30일
Fangjun Jiang
2019년 10월 30일
Position. See help annotation
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!