필터 지우기
필터 지우기

How do get 'plumblines' for scatterplot points?

조회 수: 1 (최근 30일)
Jonathan Charron
Jonathan Charron 2023년 12월 6일
답변: Star Strider 2023년 12월 6일
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