Scatter Plot, Color on Z not differentiated as expected
3 次查看(过去 30 天)
显示 更早的评论
I have a dataset of ~150k pts, xyz. Range of z is pretty broad, as illustrated below. I'd like a color map of z, not just shades of blue. I know I must be missing something obvious!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192946/image.jpeg)
0 个评论
回答(1 个)
Star Strider
2018-10-29
Experiment with scatter3 instead of scatter. (If you want a 2D view, you can do that with the view function.)
The default colormap should show different colors as a function of ‘z’. Also, consider experimenting with the caxis function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!