필터 지우기
필터 지우기

How to modify the colobar settings?

조회 수: 3 (최근 30일)
Ravindu Lokuliyana
Ravindu Lokuliyana 2019년 10월 31일
답변: meghannmarie 2019년 11월 5일
Just a simple question!!
How can I obtain following requirement for the colorbar?
  • add units
  • move colobar tilte to the desired position

채택된 답변

meghannmarie
meghannmarie 2019년 11월 5일
You could try this:
c = colorbar;
units = ' m';
c.TickLabels{end} = [c.TickLabels{end} units];
c.Location = 'westoutside';

추가 답변 (1개)

meghannmarie
meghannmarie 2019년 10월 31일
c = colorbar;
units = 'm';
c.TickLabels = cellfun(@(x) [x ' ' units], c.TickLabels, 'UniformOutput', false)
c.Position = [left,bottom, width,height];
  댓글 수: 2
Ravindu Lokuliyana
Ravindu Lokuliyana 2019년 10월 31일
Thank you for the quick reply.
I just want to add the unit at the end of the colorbar, not for all.
c.Position also not working properly.
Ravindu Lokuliyana
Ravindu Lokuliyana 2019년 10월 31일
11.PNG
Like in this case!!!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Colorbar에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by