How to change the position of power of colorbar ?
5 views (last 30 days)
Show older comments
The position of the power (10^-5)in the colorbar is in upper position. What do I do to bring it down to the bottom.
[X,Y] = meshgrid(-1000:10:1000);
Z = exp(-(X.^2+Y.^2)/1E5)*1E6;
figure
surf(X,Y,Z, 'EdgeColor','none')
grid on
colormap(hot)
hcb = colorbar;
0 Comments
Answers (1)
VBBV
on 12 Mar 2023
[X,Y] = meshgrid(-1000:10:1000);
Z = exp(-(X.^2+Y.^2)/1E5)*1E6;
figure
surf(X,Y,Z, 'EdgeColor','none')
grid on
colormap(hot)
h = colorbar
h.Location = 'southoutside'
2 Comments
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!