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 日
コメント済み: Ishaan Kudchadkar
2022 年 6 月 19 日
long = ncread(filename,'XAXIS')
lat = ncread(filename, 'YAXIS')
SST = ncread(filename,'SST')
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')
0 件のコメント
採用された回答
KALYAN ACHARJYA
2022 年 6 月 19 日
編集済み: KALYAN ACHARJYA
2022 年 6 月 19 日
long = ncread(filename,'XAXIS')
lat = ncread(filename, 'YAXIS')
SST = ncread(filename,'SST')
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 件)
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);
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!