Removing connecting lines between points in plot

335 visualizaciones (últimos 30 días)
Rajesh Subramanian
Rajesh Subramanian el 4 de Mayo de 2016
Respondida: Maryam el 28 de En. de 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.

Respuesta aceptada

Stefan Raab
Stefan Raab el 4 de Mayo de 2016
Hello,
add the following name value pair:
'LineStyle','none'
Kind regards, Stefan
  3 comentarios
utsav kakkad
utsav kakkad el 8 de En. de 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
Maryam
Maryam el 28 de En. de 2019
Works the best!

Iniciar sesión para comentar.

Más respuestas (2)

pinhas elbaiev
pinhas elbaiev el 25 de Nov. de 2018
i dont understand...plz can u show what u did?
  1 comentario
utsav kakkad
utsav kakkad el 8 de En. de 2019
did you get it finally?
can you please show me what you did?

Iniciar sesión para comentar.


Maryam
Maryam el 28 de En. de 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. :)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by