How to modify the colobar settings?

2 次查看(过去 30 天)
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.

请先登录,再进行评论。

类别

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