-
-
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
Merge v2x to master #5906
Changes from 6 commits
f257244
cefba05
aac8d6e
57623d6
bc359be
7cea22c
5fd10ae
f05d1d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1434,7 +1434,7 @@ def set_params(self, **kwargs): | |
def bin_boundaries(self, vmin, vmax): | ||
nbins = self._nbins | ||
if nbins == 'auto': | ||
nbins = min(self.axis.get_tick_space(), 9) | ||
nbins = max(min(self.axis.get_tick_space(), 9), 1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 commentThe 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. |
||
scale, offset = scale_range(vmin, vmax, nbins) | ||
if self._integer: | ||
scale = max(1, scale) | ||
|
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.
It looks like this removes the test_broken_barh_empty test because the rest accidentally got duplicated in an earlier merge