Change colorbar title position latex
25 ビュー (過去 30 日間)
古いコメントを表示
Turbulence Analysis
2020 年 10 月 19 日
コメント済み: Turbulence Analysis
2020 年 10 月 20 日
Hi,
In the attached figure, I would like to reposition the colorbar axis title to be along with colorbar. May I know how to change the psotion.
set(c,'String',['$','\omega','(1/s)','$'],'Interpreter','latex','fontsize',18);
0 件のコメント
採用された回答
Ameer Hamza
2020 年 10 月 19 日
Try something like this
c = colorbar;
c.Title.String = '$\omega(1/s)$';
c.Title.Interpreter = 'latex';
c.Title.FontSize = 16;
c.Title.Units = 'data';
c.Title.Position(1:2) = [3.5 mean(c.Limits)]; % adjust value of 3.5 until you get correct horizontal position
10 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Colorbar についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!