python27 matplotlib: first and last element connected

前端 未结 5 1699
野趣味
野趣味 2020-12-17 00:08

Hi I have found the same problem but without an answer: enter link description here

My problem is that I try to plot data with the matplotlib and it connects the fir

5条回答
  •  粉色の甜心
    2020-12-17 00:44

    I had the same problem. The solution I found was in the .txt file where my data was stored. The data set existed twice in the file and therefor caused the connection of start and endpoint by matplotlib.

    Removing double data and the graph plotted properly. Fortunately, the two datasets appeared one after the other. So it was easy to delete the first part.

    Since it was a huge data collection in my case, this was not obvious and therefor took some time to realise.

    The problem was caused in creating the txt-file....

    So all correct with matplotlib.

    Cheers, Rick

提交回复
热议问题