Display colorbar label horizontally and specify its position
52 views (last 30 days)
Show older comments
In this example
figure;
[x, y, z] = sphere;
surf(x, y, z);
c = colorbar;
c.Label.String = 'Z';
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168704/image.jpeg)
I would like the colorbar label to be displayed vertically and in the top right corner off the colorbar. How can I do it?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Colormaps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!