https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint
........
r8634 | mdboom | 2010-08-16 11:06:16 -0400 (Mon, 16 Aug 2010) | 4 lines
Handle NaN's correctly in path analysis routines. Fixes a bug where
the best location for a legend was not calculated correctly when the
line contains NaNs. - MGD
........