[HOW do I assign multiple colorbars on same figure
1 次查看(过去 30 天)
显示 更早的评论
files = dir('*.mat');
for i=1:2
load((['Mean_process_image_pos',num2str(i),'.mat']));
end
pos_1_cut_0 = Mean_process_image_pos1;
pos_1_cut_1 = rot90(pos_1_cut_0,-3);
pos_1_cut_2 = pos_1_cut_1(:,x:768);
pos_1_cut_3 = rot90(pos_1_cut_2,3);
pos_2_cut_0 = Mean_process_image_pos2;
pos_2_cut_1 = rot90(pos_2_cut_0,-3);
pos_2_cut_2 = pos_2_cut_1(:,x:768-x);
pos_2_cut_3 = rot90(pos_2_cut_2,3);
stacked_cut_image= [pos_2_cut_3;pos_1_cut_3];
figure;imshow(stacked_cut_image(:,:),[0,3.2]);colormap jet;colorbar;
This is my current code, and this compute just one figure with one colorbar. However, I want to have two colorbars, one for pos2_cut_3, and another one for pos_1cut3 then put two things on same figure.
I tried, put figure:~~~~ line under pos#_cut_3 then save and load them then stack them, however there are blank in between figures.
can anyone give me a guideline??
ps. I might need 4 colorbars in one figure
1 个评论
Image Analyst
2014-10-21
Can you post a screenshot of what you want it to look like? Mock something up in Photoshop if you have to.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!