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

https://github.com/matplotlib/matplotlib/issues/804

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

https://github.com/matplotlib/matplotlib/pull/873

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
http://www.iki.fi/jks

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

https://github.com/matplotlib/matplotlib/issues/804

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.