Problem with a clipped line containing nan's (v1.1.1rc on Ubuntu 12.04)

Alan Griffiths <alang8991@...149...> writes:

I've come across a problem (possibly a bug in cleanup_path) after
plotting a line containing nan's and then scaling the axes so that the
line is clipped by the axes.

Instead of a gap at the position of the nan value, two extra segments
appear - back to the start and then onto the next-plus-one valid
point.

This sounds a lot like

There was a bug in the fix for that, which was fixed in

I think at least the latter fix was merged later than the release
candidate was announced. You might want to try a later version.

···

--
Jouni K. Sepp�nen

Thanks, yes it's fixed in 1.1.1rc2

···

On Sun, Jun 10, 2012 at 5:24 AM, Jouni K. Seppänen <jks@...278...> wrote:

Alan Griffiths <alang8991@...149...> writes:

I've come across a problem (possibly a bug in cleanup_path) after
plotting a line containing nan's and then scaling the axes so that the
line is clipped by the axes.

Instead of a gap at the position of the nan value, two extra segments
appear - back to the start and then onto the next-plus-one valid
point.

This sounds a lot like

pdf backend bug with logarithmic plots · Issue #804 · matplotlib/matplotlib · GitHub

Please also report these issues to Ubuntu.
If its significant enough it we can fix this issue in the package. But
we can't fix what we don't know about.

The option of updating the rc to the future final 1.1.1 is also open if
the bug fixed are worth it.