-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Rework MaxNLocator, eliminating infinite loop; closes #6849 #6919
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
Conversation
Here also, the appveyor py 3.5 build failed early on; it's unrelated to this PR. |
# Make an extended staircase within which the needed | ||
# step will be found. This is probably much larger | ||
# than necessary. | ||
flights = (0.1 * np.array(self._steps[:-1]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 to the naming
This leads to
(or the example in #6849) even though the ticker could very well just use the two ticks at the two integer values. |
ENH: Rework MaxNLocator, eliminating infinite loop; closes #6849
backported to v2.x as 9982e40 |
The core algorithm has been reimplemented in a more compact and understandable form than my earlier try at adding the
min_n_ticks
constraint.I replaced the images for one mplot3d test because I think the present behavior is more consistent than the earlier behavior that led to those images. In the replaced versions, all of the axes have ticks just slightly inside the limits. Based on the gallery it appears this is the intended behavior but @WeatherGod can confirm or deny this.