Fix ScalarFormatter formatting of masked values by dstansby · Pull Request #15140 · matplotlib/matplotlib · GitHub
Skip to content

Fix ScalarFormatter formatting of masked values - #15140

Merged
tacaswell merged 2 commits into
matplotlib:masterfrom
dstansby:mask-fmt
Aug 28, 2019
Merged

Fix ScalarFormatter formatting of masked values#15140
tacaswell merged 2 commits into
matplotlib:masterfrom
dstansby:mask-fmt

Conversation

@dstansby

Copy link
Copy Markdown
Member

Fixes #15103. Could probably do with a test. Possibly an API change since previously a masked value would be formatted as nan?

@dstansby dstansby added this to the v3.1.2 milestone Aug 27, 2019
@ImportanceOfBeingErnest

Copy link
Copy Markdown
Member

@ImportanceOfBeingErnest

Copy link
Copy Markdown
Member

I don't think an API change note is needed. This simply fixes the bug introduced in #12459.
In 3.0.3 the outcome was [] as well.

@tacaswell
tacaswell merged commit 8ed7c78 into matplotlib:master Aug 28, 2019
@lumberbot-app

lumberbot-app Bot commented Aug 28, 2019

Copy link
Copy Markdown

@dstansby
dstansby deleted the mask-fmt branch September 4, 2019 17:57
dstansby pushed a commit to dstansby/matplotlib that referenced this pull request Sep 4, 2019
FIX: ScalarFormatter formatting of masked values
tacaswell added a commit that referenced this pull request Sep 4, 2019
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.

Colorbar for imshow messes interactive cursor with masked data

4 participants