Unwanted lines on a plot moving with a cursor

I'm trying to visualize some data on a plot and everything in the code works fine, it's a simple piece of code, but I'm having trouble with some additional lines on the figure. They look like they go radially from one point on the image and they move when I move my cursor through the figure. It's not the first time I see them so I don't think it's a problem with a code but I'll add it below. What should I do to get rid of them?
x=daneJtUrtdPt;
a=x{:,1};
b=x{:,2};
plot(a,b)
Here's how it looks like:

2 comentarios

KSSV
KSSV el 8 de Mayo de 2020
The plot depends on how your points are ordered. What you expect? Attach your data.
kjbegginer
kjbegginer el 8 de Mayo de 2020
I attached data I'm using to the question

Iniciar sesión para comentar.

Respuestas (1)

Harsha Priya Daggubati
Harsha Priya Daggubati el 11 de Mayo de 2020
Editada: Harsha Priya Daggubati el 11 de Mayo de 2020
Hi,
I tried replicating the same using the data you provided. It worked perfectly fine for me. Can you try restarting your MATLAB and use the following commands.
rehash toolbox
rehash toolboxcache
Here is what I have done:
x = load('daneJ_t_urtdPt.csv')
a = x(:,1);
b = x(:,2);
plot(a,b)
Here is the result that followed.

Categorías

Etiquetas

Preguntada:

el 8 de Mayo de 2020

Editada:

el 11 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by