필터 지우기
필터 지우기

Subplot titles on each column.

조회 수: 30 (최근 30일)
Wojciech Kalinowski
Wojciech Kalinowski 2020년 4월 2일
댓글: Wojciech Kalinowski 2020년 4월 2일
I was making a subplot(2,2,i) (i is any value from 1 to 4). However, I could not find a method to lable each set of grphs.
Specifically to lable each column as a title. Here I would want them above the left hand side and one above the righ hand side.
Any ideas for in built functions?
  댓글 수: 3
KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 4월 2일
Sorry, I missed the question. Are you looking for one main title over all same columns subplots?
Wojciech Kalinowski
Wojciech Kalinowski 2020년 4월 2일
Yes, sorry if I was not clear.

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

채택된 답변

darova
darova 2020년 4월 2일
What about brute force?
clc,clear
clf
subplot 121
plot(0,0)
subplot 122
plot(1,1)
h1 = annotation('textbox',[0.25 0.95 0.2 0.05],...
'string','PLOT1');
h2 = annotation('textbox',[0.65 0.95 0.2 0.05],...
'string','PLOT2');
set([h1 h2], 'fitboxtotext','on',...
'edgecolor','none')

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by