[Matplotlib-users] Why are all my plots displayed as closed loops?

Thomas Caswell tcaswell at gmail.com
Sat Jun 4 20:04:54 EDT 2016


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.

`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).

Tom

On Sat, Jun 4, 2016 at 6:39 PM Paul D. DeRocco <pderocco at ix.netcom.com>
wrote:

> Using Matplotlib 1.5.1, PyGTK 2.24.2, Python 2.7.11
>
> Everything I plot has a straight line connecting the end of the graph back
> to the beginning. I've posted some sample code, along with screen caps of
> the results, at Stackoverflow: http://preview.tinyurl.com/hb62una
>
> I'm new at Matplotlib, so I must be doing something wrong.
>
> --
>
> Ciao,               Paul D. DeRocco
> Paul                mailto:pderocco at ix.netcom.com
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160605/6f20a26d/attachment.html>


More information about the Matplotlib-users mailing list