Borrar filtros
Borrar filtros

How do get 'plumblines' for scatterplot points?

1 visualización (últimos 30 días)
Jonathan Charron
Jonathan Charron el 6 de Dic. de 2023
Respondida: Star Strider el 6 de Dic. de 2023
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?

Respuesta aceptada

Star Strider
Star Strider el 6 de Dic. de 2023
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.
.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by