m*****r 发帖数: 3822 | 1 都是surface的图,怎么公用一个colorbar
直接colorbar的话会画在一个子图的旁边
比如3x3个图,能把colorbar放在整个大图的右边吗? | r****y 发帖数: 1437 | 2 As far as I know, matlab is very lame in such manipulation.
The way I did is first plot 3x3 graph, then plot one single contour
plus
colorbar. Then use photoshop to copy and paste that big colorbar to the
first
figure.
【在 m*****r 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 都是surface的图,怎么公用一个colorbar : 直接colorbar的话会画在一个子图的旁边 : 比如3x3个图,能把colorbar放在整个大图的右边吗?
| t***s 发帖数: 4666 | 3 you can achieve these by manipulating the properties. subplot basically
just generate a set of axes with correct sizes.
contour
【在 r****y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : As far as I know, matlab is very lame in such manipulation. : The way I did is first plot 3x3 graph, then plot one single contour : plus : colorbar. Then use photoshop to copy and paste that big colorbar to the : first : figure. :
| r****y 发帖数: 1437 | 4 too time consuming comparing to mouse click in photoshop.
【在 t***s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : you can achieve these by manipulating the properties. subplot basically : just generate a set of axes with correct sizes. : : contour
| t***s 发帖数: 4666 | 5 that's true.
【在 r****y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : too time consuming comparing to mouse click in photoshop.
| i**g 发帖数: 134 | 6 subplot之后添加一个全高度的隐藏的axes,
对这个axes添加colorbar
subplot(2,2,1); surf(rand(10));
subplot(2,2,2) ....
h=axes('position',[0.85,0.12,0.05,0.8]);
caxis([0,1]);
colorbar
set(h,'visible','off')
【在 m*****r 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 都是surface的图,怎么公用一个colorbar : 直接colorbar的话会画在一个子图的旁边 : 比如3x3个图,能把colorbar放在整个大图的右边吗?
|
|