Borrar filtros
Borrar filtros

How to change the position of power of colorbar ?

6 visualizaciones (últimos 30 días)
U B
U B el 12 de Mzo. de 2023
Comentada: U B el 12 de Mzo. de 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;

Respuestas (1)

VBBV
VBBV el 12 de Mzo. de 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 comentarios
VBBV
VBBV el 12 de Mzo. de 2023
An alternative is to change the location of colorbar to bottom
U B
U B el 12 de Mzo. de 2023
Thanks.

Iniciar sesión para comentar.

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by