Skip to content
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

Fixed bug in MaxNLocator.bin_boundaries #1277

Merged
merged 1 commit into from Sep 18, 2012
Merged

Conversation

bblay
Copy link
Contributor

@bblay bblay commented Sep 18, 2012

import numpy.random
import numpy.ma as ma
import matplotlib.pyplot as plt
a = numpy.random.uniform(size=(10,10)) + 280
a2 = ma.MaskedArray(a)
plt.contour(a2)  # Fails
ValueError: zero-size array to minimum.reduce without identity

Fixed a bug where MaxNLocator.bin_boundaries() was changing QuadContourSet.zmin and zmax in place, causing an empty levels list, and therefore the above exception.

efiring added a commit that referenced this pull request Sep 18, 2012
Fixed bug in MaxNLocator.bin_boundaries
@efiring efiring merged commit 5ba5233 into matplotlib:v1.2.x Sep 18, 2012
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.

None yet

2 participants