Skip to content

Commit

Permalink
Merge pull request #2875 from mdehoon/issue2872bugfix
Browse files Browse the repository at this point in the history
Fix for issue #2872. Skip NaN's in draw_path_collection.
  • Loading branch information
tacaswell committed Mar 11, 2014
2 parents 25adc1c + 74273e8 commit 3563cb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_macosx.m
Expand Up @@ -1619,6 +1619,8 @@ static int _transformation_converter(PyObject* object, void* pointer)
translation.x = - (origin.x - translation.x);
translation.y = - (origin.y - translation.y);
}
/* in case of missing values, translation may contain NaN's */
if (!isfinite(translation.x) || !isfinite(translation.y)) continue;
CGContextTranslateCTM(cr, translation.x, translation.y);
}

Expand Down

0 comments on commit 3563cb5

Please sign in to comment.