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?

采纳的回答

Star Strider
Star Strider 2023-12-6
Use the stem3 function.
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 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by