필터 지우기
필터 지우기

How to change the position of power of colorbar ?

조회 수: 6 (최근 30일)
U B
U B 2023년 3월 12일
댓글: U B 2023년 3월 12일
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;

답변 (1개)

VBBV
VBBV 2023년 3월 12일
[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
VBBV
VBBV 2023년 3월 12일
An alternative is to change the location of colorbar to bottom
U B
U B 2023년 3월 12일
Thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by