フィルターのクリア

How to modify the colobar settings?

3 ビュー (過去 30 日間)
Ravindu Lokuliyana
Ravindu Lokuliyana 2019 年 10 月 31 日
回答済み: meghannmarie 2019 年 11 月 5 日
Just a simple question!!
How can I obtain following requirement for the colorbar?
  • add units
  • move colobar tilte to the desired position

採用された回答

meghannmarie
meghannmarie 2019 年 11 月 5 日
You could try this:
c = colorbar;
units = ' m';
c.TickLabels{end} = [c.TickLabels{end} units];
c.Location = 'westoutside';

その他の回答 (1 件)

meghannmarie
meghannmarie 2019 年 10 月 31 日
c = colorbar;
units = 'm';
c.TickLabels = cellfun(@(x) [x ' ' units], c.TickLabels, 'UniformOutput', false)
c.Position = [left,bottom, width,height];
  2 件のコメント
Ravindu Lokuliyana
Ravindu Lokuliyana 2019 年 10 月 31 日
Thank you for the quick reply.
I just want to add the unit at the end of the colorbar, not for all.
c.Position also not working properly.
Ravindu Lokuliyana
Ravindu Lokuliyana 2019 年 10 月 31 日
11.PNG
Like in this case!!!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeColorbar についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by