# I have 3 SST plots which I wish to put side-by-side in 1 figure in the form of a 1x3 panel. How do I go about this? I have attached my plots and the code.

조회 수: 3(최근 30일)
댓글: Ishaan Kudchadkar 2022년 6월 19일
SST_Oct = SST(:,:,10:10)
SST_Nov = SST(:,:,11:11)
SST_Dec = SST(:,:,12:12)
h1 = pcolor(long,lat,SST_Oct')
h2 = pcolor(long,lat,SST_Nov')
h3 = pcolor(long,lat,SST_Dec')

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

### 채택된 답변

KALYAN ACHARJYA 2022년 6월 19일
편집: KALYAN ACHARJYA 2022년 6월 19일
SST_Oct = SST(:,:,10:10)
SST_Nov = SST(:,:,11:11)
SST_Dec = SST(:,:,12:12)
tiledlayout(1,3);
% Tile 1
nexttile
pcolor(long,lat,SST_Oct');
nexttile
pcolor(long,lat,SST_Nov');
nexttile
pcolor(long,lat,SST_Dec');
Docs @doc:tiledlayout.html
##### 댓글 수: 1표시숨기기 없음
Thank you so much that worked!

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

### 추가 답변(1개)

Ayush Kumar Jaiswal 2022년 6월 19일
편집: Ayush Kumar Jaiswal 2022년 6월 19일
You may use following command to place different plots in a single figure at custom location:
% in your case, m = 1, n = 3
% p will depend on that particular plot
subplot(m,n,p);
##### 댓글 수: 1표시숨기기 없음
Thank you for your reply, but how do I use subplot with pcolor? It just plots a black box instead of the SST map. Kindly help.

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

### 범주

Find more on Title in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by