-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Merge v2x to master #5906
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
Merge v2x to master #5906
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f257244
TST: test that number of ticks adjust with aspect
tacaswell cefba05
FIX: always use at least 2 ticks and recompute
tacaswell aac8d6e
TST: hard-code nbins
tacaswell 57623d6
MNT: remove caching of _tick_space
tacaswell bc359be
DOC: modify examples to fix number of ticks
tacaswell 7cea22c
Merge pull request #5772 from tacaswell/min_nticks
jenshnielsen 5fd10ae
Merge remote-tracking branch 'matplotlib/v2.x' into realmaster
jenshnielsen f05d1d0
Make sure that we have at least one loc before calculating as suggest…
jenshnielsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
FIX: always use at least 2 ticks and recompute
For extreme aspect-ratio plots the auto ntick logic would decide that no ticks will fit, leading to divide by 0 issue. - In ticker ensure there is always at least on bin - Axis do not cache the number of ticks so that if the on-screen aspect ratio changes the number of ticks will update correctly.
- Loading branch information
commit cefba05cc88e441e142a417f9993e4ceaf8095bc
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Does this need to be "2" at the end? (Just a wild guess...)
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.
Sounds like a reasonable guess, but I think that at least originally, nbins was a maximum number of intervals, so the maximum number of ticks would be one larger; but all of this is dealing with maxima, not with any guaranteed number.
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.
I stated with 2 and change to 1 for exactly the reason @efiring stated.