Azzera filtri
Azzera filtri

How to change the position of power of colorbar ?

6 visualizzazioni (ultimi 30 giorni)
U B
U B il 12 Mar 2023
Commentato: U B il 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;

Risposte (1)

VBBV
VBBV il 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 Commenti
VBBV
VBBV il 12 Mar 2023
An alternative is to change the location of colorbar to bottom

Accedi per commentare.

Categorie

Scopri di più su Colormaps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by