Logarithmic color scale in 2d histogram
6 次查看(过去 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!