Skip to content

BUGS: in colorbar: divide-by-zero, and undesired masked array #8812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

efiring
Copy link
Member

@efiring efiring commented Jun 27, 2017

Closes #8534 (divide-by-zero warning).
Also fixes a bug that became evident with #8801, which causes
pcolormesh to fail if X or Y is a masked array. Although masked
arrays are not supported by pcolormesh, previously it would ignore
the mask. Locators always return masked arrays, so the present
commit explicitly converts to an ndarray the Locator output used
by proportional colorbars.

Closes matplotlib#8534 (divide-by-zero warning).
Also fixes a bug that became evident with matplotlib#8801, which causes
pcolormesh to fail if X or Y is a masked array.  Although masked
arrays are not supported by pcolormesh, previously it would ignore
the mask.  Locators always return masked arrays, so the present
commit explicitly converts to an ndarray the Locator output used
by proportional colorbars.
@tacaswell tacaswell added this to the 2.1 (next point release) milestone Jun 27, 2017
@dopplershift dopplershift merged commit fcce35d into matplotlib:master Jun 27, 2017
@dopplershift
Copy link
Contributor

I probably should have reviewed 👍 before merging...oh well.

@efiring efiring deleted the colorbar_divide_by_zero branch October 24, 2021 19:52
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.

"divide by zero" warning doing a proportional colorbar with only 3 bounds
3 participants