How can I change tickformat in the colorbar.

조회 수: 32 (최근 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 CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by