how to make pictures in subplot to same size?
31 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to make pictures in subplot to same size?
this is my result
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/640775/image.png)
and i wanna make like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/640780/image.png)
this is my figure code
subplot(1,3,1)
contourf(lon_310, dep_106, temp_310_mat,40, 'LineStyle','None')
axis ij
xlabel('Longitude (°)');
ylabel('Depth (m)');
c = colorbar;
c.Label.String = 'Temperature (℃)';
c.Label.FontSize = 11;
colormap jet
title('KODC 정선 310 SST');
subplot(1,3,2)
set(gcf, 'color', 'w', 'Units', 'Normalized', 'OuterPosition', [0.1 0.1 0.5 0.6]);
m_proj('mercator', 'lon',[123 132], 'lat',[33 42]);
m_contourf(lon_s, lat_s, sst_s, 30, 'LineColor','None')
colorbar
title('OSTIA SST');
c = colorbar;
c.Label.String = 'Temperature(°C)';
C.Label.FontSize = 13;
colormap jet
m_coast('patch', [.9 .9 .9], 'linestyle', 'none');
m_grid('fontsize',12, 'tickdir','in');
subplot(1,3,3)
contourf(lon_106, dep_106, temp_106_mat,40, 'LineStyle','None')
axis ij
xlabel('Longitude (°)');
ylabel('Depth (m)');
c = colorbar;
c.Label.String = 'Temperature (℃)';
c.Label.FontSize = 11;
colormap jet
title('KODC 정선 106 SST');
0 commentaires
Réponses (1)
Prateek Rai
le 21 Nov 2021
Hi,
You can refer to the following MATLAB Answer post on "How to plot all images to same size in subplot" to get more idea.
0 commentaires
Voir également
Catégories
En savoir plus sur Subplots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!