1:请问matlab中画多张图如何使用同一范围的colorbar?
例如生成了图1,2,3
生成图1时,使用
temp1=caxis;
将图1的z值的取值范围(即colorbar的取值范围)取出。
生成图2,3时
使用
caxis(temp1)
命令将图2,3的z值的取值范围设为同1相同。
然后对各个同使用colorbar命令便可以了。
example
:
subplot(4,6,19); mim(ang90ind10);temp1=caxis;
subplot(4,6,20) ;
mim(ang90ind11);caxis(temp1);
subplot(4,6,21) ;
mim(ang90ind12);caxis(temp1);
subplot(4,6,22) ;
mim(ang90ind13);caxis(temp1);
subplot(4,6,23); mim(ang90ind14);caxis(temp1);
subplot(4,6,24) ;
mim(ang90ind15);caxis(temp1);
subplot(4,6,13) ;
mim(ang60ind10);caxis(temp1);
subplot(4,6,14) ;
mim(ang60ind11);caxis(temp1);
subplot(4,6,15) ;
mim(ang60ind12);caxis(temp1);
subplot(4,6,16) ;
mim(ang60ind13);caxis(temp1);
subplo