[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!