From: hmogensen Mogensen on
I am working with a graphical user interface containing several axes. In one of the axes, an image is displayed (with imagesc). Then I want to display the colorbar for this image, but in a separate axes (so that it does not hide parts of the image, nor squeezes the displayed image). I have tried this, for instance:

im = imagesc(slice);
h = colorbar('Position',[53 34 66 12]);

But in this case the colorbar doesnt show at all.
Any ideas on how to solve it?

Kind regards
HMogensen