2D binned coloured plot
1 view (last 30 days)
Show older comments
I want plot like this as i have attched here. I am new to MATLAB, so don't know how to do binning afd all. I am also attaching data.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/673063/image.jpeg)
3 Comments
dpb
on 3 Jul 2021
Look at hist3; there's an example "Tiled Histogram View" that's what you're looking for -- I don't have mapping TB so no idea about adding on top of the map.
There may be specialized routines in the TB for such things; hist3 can return the counts data for other use; there's also the lower-level accumarray
Not sure about whether the heatmap do you any good or not; it's perhaps worth a look-see...
Answers (0)
See Also
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!