[HOW do I assign multiple colorbars on same figure
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Image Analyst
am 21 Okt. 2014
Can you post a screenshot of what you want it to look like? Mock something up in Photoshop if you have to.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Colormaps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!