- 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?
How can I change tickformat in the colorbar.
30 次查看(过去 30 天)
显示 更早的评论
How can I change tickformat in the colorbar. Regards.
2 个评论
Pawel Jastrzebski
2018-3-13
回答(1 个)
Walter Roberson
2018-3-14
cb = colorbar();
cb.YRuler.TickLabelFormat = '%.2f';
4 个评论
jonas
2019-12-21
the following works in 2019a:
cb.Ruler.TickLabelFormat
Note: 'Ruler' and not 'YRuler'.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!