フィルターのクリア

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 Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by