Logarithmic color scale in 2d histogram
8 ビュー (過去 30 日間)
古いコメントを表示
I am looking for a way to change the colorbar of a 2d histogram plotted with DisplayStyle = 'tile' to a logarithmic scale so that one can better distinguish the frequencies. Unfortunally histogram2 has no property 'ColorScale'. Thanks in advance!
0 件のコメント
回答 (1 件)
ANKUR KUMAR
2018 年 10 月 8 日
Use ruler.scale to set log axis in colorbar.
contourf(randi(1000,25,25))
cx= colorbar();
cx.Ruler.Scale = 'log';
cx.Ruler.MinorTick = 'on';
2 件のコメント
ANKUR KUMAR
2018 年 10 月 8 日
Please attach you code along with the .mat file containing required variables.
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!