Moving the position of the colorbar label
24 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
Is there a way to move the position of the decimal power in the colorbar axis shown in the figure attached to this post ? More specifically, I want to move a little bit on the left.
Thank you in advance for your help,
Sincerely.
0 个评论
采纳的回答
the cyclist
2024-4-1
编辑:the cyclist
2024-4-1
figure
surf(1e7*peaks)
c = colorbar;
drawnow()
c.Ruler.SecondaryLabel.Units = 'normalized';
c.Ruler.SecondaryLabel.Position = [1 0.9];
I tried to run this code here, but got an error message. (According to this question, it seems there is a problem running code at Answers at the moment.) It runs on my local machine, though. In this case, I moved the label down from the default position. Adjust as you see fit.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Orange 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!