Linear Scale on Logarithmic Colorbar

58 ビュー (過去 30 日間)
Douglas Anderson
Douglas Anderson 2022 年 11 月 21 日
回答済み: Douglas Anderson 2022 年 11 月 22 日
Hello!
I am using a logarithmic colorbar over a limited range of values. The colorbar shows the log values, just the exponents. Is there a way to show the actual linear values on the colorbar?
Here's a dummy example.
Linear Log
Would like the numbers on the log scale instead of the exponent values.
Thanks!
Doug Anderson

採用された回答

Douglas Anderson
Douglas Anderson 2022 年 11 月 22 日
OK, I figured this out. For this case:
colormap;
set(gca,'colorscale','log');
cbar = colorbar;
cbar.Ticks = [0.125,0.25,0.5,1,1.5,2];
Doug Anderson

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by