How can I change tickformat in the colorbar.

31 Ansichten (letzte 30 Tage)
Yrobel Lima
Yrobel Lima am 13 Mär. 2018
Kommentiert: Walter Roberson am 21 Dez. 2019
How can I change tickformat in the colorbar. Regards.
  2 Kommentare
Pawel Jastrzebski
Pawel Jastrzebski am 13 Mär. 2018
  • 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 am 13 Mär. 2018
Hi, thanks for your reply, I want to change is the number format of the colorbar label. Thanks.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 14 Mär. 2018
cb = colorbar();
cb.YRuler.TickLabelFormat = '%.2f';
  4 Kommentare
jonas
jonas am 21 Dez. 2019
the following works in 2019a:
cb.Ruler.TickLabelFormat
Note: 'Ruler' and not 'YRuler'.
Walter Roberson
Walter Roberson am 21 Dez. 2019
Thanks, jonas. This is a detail that changed at some point.

Melden Sie sich an, um zu kommentieren.

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by