Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
FIX: make sure all ticks show up for colorbar minor tick#12099
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -267,7 +267,8 @@ def __call__(self): | ||
vmin = self._colorbar.norm.vmin | ||
vmax = self._colorbar.norm.vmax | ||
ticks = ticker.AutoMinorLocator.__call__(self) | ||
rtol = (vmax - vmin) * 1e-10 | ||
return ticks[(ticks >= vmin - rtol) & (ticks <= vmax + rtol)] | ||
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. Just as a thought: Can it happen, that vmin > vmax? If so, neither the original nor the fixed code would work in that case. 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. Yes but that gets checked and swapped inside the method before this code 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. Confirmed that vmax and vmin get flipped if they are specified out of order. Which maybe is bad behaviour? But its what colorbar does... | ||
class _ColorbarLogLocator(ticker.LogLocator): | ||