How to change the position of power of colorbar ?

5 vues (au cours des 30 derniers jours)
U B
U B le 12 Mar 2023
Commenté : U B le 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;

Réponses (1)

VBBV
VBBV le 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 commentaires
VBBV
VBBV le 12 Mar 2023
An alternative is to change the location of colorbar to bottom
U B
U B le 12 Mar 2023
Thanks.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by