- 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.
72 views (last 30 days)
Show older comments
How can I change tickformat in the colorbar. Regards.
2 Comments
Pawel Jastrzebski
on 13 Mar 2018
Answers (1)
Walter Roberson
on 14 Mar 2018
cb = colorbar();
cb.YRuler.TickLabelFormat = '%.2f';
4 Comments
jonas
on 21 Dec 2019
the following works in 2019a:
cb.Ruler.TickLabelFormat
Note: 'Ruler' and not 'YRuler'.
See Also
Categories
Find more on Colormaps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!