Logarithmic color scale in 2d histogram
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
ANKUR KUMAR
am 8 Okt. 2018
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 Kommentare
ANKUR KUMAR
am 8 Okt. 2018
Please attach you code along with the .mat file containing required variables.
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!