登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位大神,你们在画图的时候有没有遇到过,用subplot在一张Figure里画多张图时,显示不全的情况,比如,我需要画8张图,但是在Figure里只显示出6张。程序没有报错,也检查不出问题,好疑惑,求大大解答!!!
附上画图程序,以供参考。
H = figure set(gcf,'unit','centimeters','position',[0,1,25,25]) H1 = subplot(4,2,1) set(H1,'pos',[0.07 0.78 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP1') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P1','fontname','Times New Roman','FontSize',17);
H2 = subplot(4,2,2) set(H2,'pos',[0.07 0.56 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP2') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P2','fontname','Times New Roman','FontSize',17);
H3 = subplot(4,2,3) set(H3,'pos',[0.07 0.34 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP3') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P3','fontname','Times New Roman','FontSize',17);
H4 = subplot(4,2,4) set(H4,'pos',[0.07 0.12 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP4') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P4','fontname','Times New Roman','FontSize',17);
H5 = subplot(4,2,5) set(H5,'pos',[0.26 0.78 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP5') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P5','fontname','Times New Roman','FontSize',17);
H6 = subplot(4,2,6) set(H6,'pos',[0.26 0.56 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP6') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P6','fontname','Times New Roman','FontSize',17);
H7 = subplot(4,2,7) set(H7,'pos',[0.26 0.34 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP7') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P7','fontname','Times New Roman','FontSize',17);
H8 = subplot(4,2,8) set(H8,'pos',[0.26 0.12 0.21 0.21]) m_proj('Equidistant Cylindrical','lon',[100 130],'lat',[15 45]);%¸ü¸Ä·¶Î§ m_pcolor(Lon_T,Lat_T,PP8') shading interp colormap(mycols(0)); caxis([-1.1 1.1]) set(gca, 'FontSize', 10); hold on m_coast('color',[0.3 0.3 0.5]); hold on m_contour(Lon_SH,Lat_SH,SH',[300,300],'LineColor','g','LineWidth',2.5); hold on m_plot(GJ_X,GJ_Y,'-k','LineWidth',2.5)%»æ1ú½ç hold on m_plot(yangtze_x,yangtze_y,'-g','LineWidth',1)%»æ3¤½- hold on m_plot(yellow_x,yellow_y,'-g','LineWidth',1)%»æ»Æoó m_grid('ytick',[20 30 40],'xtick',[]) hold on m_rectangle(125,15,5,5,0,'LineWidth',1,'Curvature', [0 0], 'FaceColor','w') hold on m_text(125.5,17.5,'P8','fontname','Times New Roman','FontSize',17);
|