subplot axes shrink with colorbar
Show older comments
Hi, I do a subplot(2,2,...) with pcolor on each subplot and a colorbar for the plots on the right side. This subplot is repeated t times and an avi movie done with it. Unfortunately, for each new iteration the axes of the right side subplots and the colorbars shrink. If I remove the colorbar everything goes fine. This happens with Matlab 2011a. Workarounds for other axes shrinking bugs did not work and these were solved for previous releases. Thanks
Accepted Answer
More Answers (2)
Iain
on 21 May 2013
1 vote
a(1) = subplot(2,2,1);
pos1 = get(a,'Position');
a(2) = subplot(2,2,2);
pos2 = get(a,'Position');
add colourbar etc.
set(a(1),'Position',pos1)
set(a(2),'Position',pos2)
Vasco Vieira
on 22 May 2013
0 votes
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!