<div dir="ltr">In the future, it is best to include a minimal example in your email to the user list.  tinyurls (and SO posts) are almost certainly going to rot.<div><br></div><div>`Line2D` draws lines connecting the points in the order you pass them in.  If mpl sorted your data based on the x values then you could never plot anything was not a single valued function f(x).</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jun 4, 2016 at 6:39 PM Paul D. DeRocco <<a href="mailto:pderocco@ix.netcom.com">pderocco@ix.netcom.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Using Matplotlib 1.5.1, PyGTK 2.24.2, Python 2.7.11<br>
<br>
Everything I plot has a straight line connecting the end of the graph back<br>
to the beginning. I've posted some sample code, along with screen caps of<br>
the results, at Stackoverflow: <a href="http://preview.tinyurl.com/hb62una" rel="noreferrer" target="_blank">http://preview.tinyurl.com/hb62una</a><br>
<br>
I'm new at Matplotlib, so I must be doing something wrong.<br>
<br>
--<br>
<br>
Ciao,               Paul D. DeRocco<br>
Paul                mailto:<a href="mailto:pderocco@ix.netcom.com" target="_blank">pderocco@ix.netcom.com</a><br>
<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>