Borrar filtros
Borrar filtros

[HOW do I assign multiple colorbars on same figure

2 visualizaciones (últimos 30 días)
YJ
YJ el 21 de Oct. de 2014
Comentada: Image Analyst el 21 de Oct. de 2014
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 comentario
Image Analyst
Image Analyst el 21 de Oct. de 2014
Can you post a screenshot of what you want it to look like? Mock something up in Photoshop if you have to.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by