Discard NaN entries from groovy graphs

NaN entries are not plotted. This fixes bug 697.
Merge pull request #728 from twosigma/ildipo/issue-697

Discard NaN entries from groovy graphs