i need to plot a line in 3D scatter plot
12 次查看(过去 30 天)
显示 更早的评论
i have created a scatter plot with scatter3. now without clearing this plot I need to draw a line in the same graph. when I put plot3 after scatter3 it clears the plot and then gives me the plot3 graph without the scatter points
david
0 个评论
采纳的回答
Star Strider
2018-9-28
figure
scatter3( ... )
hold on
plot3( ... )
hold off
grid on
4 个评论
Cristián Vera
2020-3-21
How can I plot with scatter(X,Y,pointsize,Z,'filled') using '-o' plot lines? Only uses circles.
Star Strider
2020-3-21
@Cristián Vera — Use plot rather than scattter to plot lines (with or without markers). What you want to do is not obvious, so perhaps using both (with the hold function) will do what you want. Experiment!
更多回答(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!