i need to plot a line in 3D scatter plot
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
david edwards jr
am 28 Sep. 2018
Kommentiert: Star Strider
am 21 Mär. 2020
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 Kommentare
Akzeptierte Antwort
Star Strider
am 28 Sep. 2018
figure
scatter3( ... )
hold on
plot3( ... )
hold off
grid on
4 Kommentare
Cristián Vera
am 21 Mär. 2020
How can I plot with scatter(X,Y,pointsize,Z,'filled') using '-o' plot lines? Only uses circles.
Star Strider
am 21 Mär. 2020
@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!
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!