How can I change tickformat in the colorbar.

30 ビュー (過去 30 日間)
Yrobel Lima
Yrobel Lima 2018 年 3 月 13 日
コメント済み: Walter Roberson 2019 年 12 月 21 日
How can I change tickformat in the colorbar. Regards.
  2 件のコメント
Pawel Jastrzebski
Pawel Jastrzebski 2018 年 3 月 13 日
  • What is your current formatting?
  • What do you want to change it to?
  • Have you checked if the answer to your question isn't in the example section of the colorbar doc?
Yrobel Lima
Yrobel Lima 2018 年 3 月 13 日
Hi, thanks for your reply, I want to change is the number format of the colorbar label. Thanks.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 3 月 14 日
cb = colorbar();
cb.YRuler.TickLabelFormat = '%.2f';
  4 件のコメント
jonas
jonas 2019 年 12 月 21 日
the following works in 2019a:
cb.Ruler.TickLabelFormat
Note: 'Ruler' and not 'YRuler'.
Walter Roberson
Walter Roberson 2019 年 12 月 21 日
Thanks, jonas. This is a detail that changed at some point.

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

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by