Narrow colorbar with tiledlayout
    22 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I've noticed that the colorbars in a "tiledlayout"-plot do not seem to widen increasing the width of the whole figure, making them much narrower than in a subplot-environment. In return there is more space available for the axes themselves. Is this behavior intended? Is there any way to change this?
Thank you very much in advance.
MWE:
h1 = figure;
tlt = tiledlayout(1, 2); 
nexttile; 
surf(rand(10)); 
colorbar; 
nexttile; 
surf(rand(10)); 
colorbar; 
h.Position(3) = 2*h.Position(3);
% 
h2 = figure; 
ax1 = subplot(1, 2, 1); 
surf(rand(10)); 
colorbar; 
ax2 = subplot(1, 2, 2); 
surf(rand(10)); 
colorbar; 
h.Position(3) = 2*h.Position(3);
0 件のコメント
回答 (1 件)
  Siriniharika Katukam
    
 2019 年 12 月 2 日
        Hi
Referring this link might be helpful:
Colorbar is used to map data values into the colourmap. So, having its size small(clear enough) would be sufficient.
参考
カテゴリ
				Help Center および File Exchange で Subplots についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

