How to change the position of power of colorbar ?

5 Ansichten (letzte 30 Tage)
U B
U B am 12 Mär. 2023
Kommentiert: U B am 12 Mär. 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;

Antworten (1)

VBBV
VBBV am 12 Mär. 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 Kommentare
VBBV
VBBV am 12 Mär. 2023
An alternative is to change the location of colorbar to bottom
U B
U B am 12 Mär. 2023
Thanks.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Colormaps finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by