Skip to content

Fix for issue #2872. Skip NaN's in draw_path_collection. - #2875

Merged
tacaswell merged 1 commit into
matplotlib:masterfrom
mdehoon:issue2872bugfix
Mar 11, 2014
Merged

tacaswell merged 1 commit into
matplotlib:masterfrom
mdehoon:issue2872bugfix

Conversation

@mdehoon

@mdehoon mdehoon commented Mar 7, 2014

Copy link
Copy Markdown
Contributor

See issue #2872. In case of missing values (e.g., zeros when using a logarithmic scale), draw_path_collection may get offsets containing NaN's. In that case, using CGContextTranslateCTM once with translation and once with -translation will not restore the original CTM. This bugfix adds a check for NaN/inf.

… when using a logarithmic scale), draw_path_collection may get offsets containing NaN's. In that case, using CGContextTranslateCTM once with translation and once with -translation will not restore the original CTM. This bugfix adds a check for NaN/inf.
@tacaswell

Copy link
Copy Markdown
Member

Should this have been targeted at 1.3.x?

@efiring

efiring commented Mar 7, 2014

Copy link
Copy Markdown
Member

I'm not convinced it is worth bothering with more 1.3.x fixes now, and this is a fairly obscure bug.

@mdehoon

mdehoon commented Mar 8, 2014

Copy link
Copy Markdown
Contributor Author

No this is targeted at master. The bug doesn't manifest itself there, but it's still there. We should fix it now so it won't bite us later.

tacaswell added a commit that referenced this pull request Mar 11, 2014
Fix for issue #2872. Skip NaN's in draw_path_collection.
@tacaswell
tacaswell merged commit 3563cb5 into matplotlib:master Mar 11, 2014
@mdehoon
mdehoon deleted the issue2872bugfix branch April 18, 2015 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants