How to modify the colobar settings?
조회 수: 1 (최근 30일)
이전 댓글 표시
Just a simple question!!
How can I obtain following requirement for the colorbar?
- add units
- move colobar tilte to the desired position
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/245919/image.png)
댓글 수: 0
채택된 답변
meghannmarie
2019년 11월 5일
You could try this:
c = colorbar;
units = ' m';
c.TickLabels{end} = [c.TickLabels{end} units];
c.Location = 'westoutside';
댓글 수: 0
추가 답변 (1개)
meghannmarie
2019년 10월 31일
c = colorbar;
units = 'm';
c.TickLabels = cellfun(@(x) [x ' ' units], c.TickLabels, 'UniformOutput', false)
c.Position = [left,bottom, width,height];
참고 항목
카테고리
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!