I am creating a (1,3) subplot and want to put one colorbar on the right.
I have already used previously suggested answers in order to move it the way I wanted with the 'Position' matrix
The problem is that when changing the size of the figure window, the colorbar doesn't follow these changes as the subplots.
More precisely, the width and the x bottom left keep an acceptable ratio but not the height or the y bottom right
Typically, picture 1 is good (and done manually) and then picture 2 is not so good anymore, just after a few adjustements to the figure window size)
This is the code I am using
colorbar('Position', [0.95 0.25 0.02 0.535])
Would there be a way to fix the length of the color bar to adjust to the size of the subplots at all time ?
Thanks a lot