# There is a weird line in my graph

**URL:** <https://community.plotly.com/t/there-is-a-weird-line-in-my-graph/3394>\
**Category:** 📊 Plotly Python\
**Created:** [February 16, 2017, 7:56pm UTC](https://community.plotly.com/t/there-is-a-weird-line-in-my-graph/3394 "2017-02-16T19:56:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marbulig](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@Marbulig](https://community.plotly.com/u/Marbulig)\
**Post date:** [February 16, 2017, 7:56pm UTC](https://community.plotly.com/t/there-is-a-weird-line-in-my-graph/3394/1 "2017-02-16T19:56:35Z")

</div>

[https://plot.ly/~GreatGaffs/19](https://plot.ly/~GreatGaffs/19)

This hasn’t happened before. I don’t know where it could come from.  
The graph shouldn’t have a straight line in it, as you can see from my previous graphs.

---

<div class="post-metadata">

**Author:** ![Marbulig](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@Marbulig](https://community.plotly.com/u/Marbulig)\
**Post date:** [February 19, 2017, 3:12pm UTC](https://community.plotly.com/t/there-is-a-weird-line-in-my-graph/3394/2 "2017-02-19T15:12:05Z")

</div>

I figured it out. The data I was using was in a Python dictionary, which is unordered.  
I didn’t order it before sending the scatter to plotly API, and the graph making program assumed that the points should be connected based on their order in the Grid. I think it shouldn’t be done like that as a default, but I assume there is a reason to do it that way.
