필터 지우기
필터 지우기

[HOW do I assign multiple colorbars on same figure

조회 수: 2 (최근 30일)
YJ
YJ 2014년 10월 21일
댓글: Image Analyst 2014년 10월 21일
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
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 CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by