Removing connecting lines between points in plot
247 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rajesh Subramanian
le 4 Mai 2016
Réponse apportée : Maryam
le 28 Jan 2019
Hi, When i try to plot the following data x,y, and z using plot 3 function, i'm getting the plot, where the points have connection lines between them. How can i remove those connecting lines between points ? This is my code:
x=0:5:50;
y=0:5:50;
z=0:5:50;
plot3(x,y,z,'Color',[1,0,0],'Marker','o');
Thanks in advance.
0 commentaires
Réponse acceptée
Stefan Raab
le 4 Mai 2016
Hello,
add the following name value pair:
'LineStyle','none'
Kind regards, Stefan
3 commentaires
utsav kakkad
le 8 Jan 2019
I couldn't quite get it doing the same gives me an error
Can you please kindly give me the exact syntax of what exactly you did?
I need to remove a line coming bang in the middle of my graph & its frustrating me
Plus de réponses (2)
Maryam
le 28 Jan 2019
errorbar(x, y ,'horizontal', 'LineStyle', 'none');
Pinhas,
try the code line above.
I was trying to plot the std lines horizontally, but I got some extra vertical lines. With this code line however, it only gave the horizontal lines.
Thanks Stefan. :)
0 commentaires
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!