How to change the position of power of colorbar ?

14 views (last 30 days)
U B
U B on 12 Mar 2023
Commented: U B on 12 Mar 2023
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;

Answers (1)

VBBV
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'

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!