Problems when plotting arrays on python, instead of plotting full lines it onyl plots dots

Viewed 32

I'm having problem when plotting two arrays in python. I have to numpy arrays with same size, one which I will use to set the time and the other one that is a reference siganl. They look like this:

this is the reference siganl array: enter image description here This the time array: enter image description here

But then when i call to the plt.plot command this way: enter image description here

I obtain the following plot:

enter image description here

Anyone know why it takes each value of the reference array individually? and any solutions for it? Even when I put a legend to the plot, it displays Yr 18 times.

0 Answers
Related