How can I enhance scatter3() visibility with a heatmap?
19 views (last 30 days)
Show older comments
The data I'm working with contains coordinates of players partaking in a game.
I am trying to plot them in 3D in order to see which parts of the map are the most frequently inhabitated. So far, the work is mostly done by:
scatter3(XYZ(:,1),XYZ(:,2),XYZ(:,3),0.5)
There are 10^6 sets of coordinates in the data, and the "map" is very cluttered on the points of interest, making it indistinguishable which of these points is favored the most. Is there any way to involve a coloring that would scale based on the global point density?
Thanks in advance.
0 Comments
Answers (1)
the cyclist
on 6 Mar 2023
I also recommend taking a look at the MATLAB Plot Gallery, to see if any examples look like what you want. You can pull code from there, too (including for the two functions I just mentioned).
0 Comments
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!