How do get 'plumblines' for scatterplot points?
1 次查看(过去 30 天)
显示 更早的评论
On my scatter3 plot I wanted to draw a line from each point's marker on the plot, down to the surface plane, so the points can be visually differentiated by their height Z/length of line. Is there a way to do this?
0 个评论
采纳的回答
Star Strider
2023-12-6
If you want to colour the points, use something like this —
figure
stem3(X, Y, Z)
hold on
scatter3(X, Y, Z, 25, Z)
hold off
grid
That should work.
.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!