-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Correctly extend a lognormed colorbar #7552
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
Those failures look real? Is there a better way to do this that does not require |
Turns out the issue is a typo (+ should be a -), in the non-lognorm code I copied into the else statement. Should be fixed now. |
|
cb = ColorbarBase(ax, norm=LogNorm(vmin=0.1, vmax=1000.0), | ||
orientation='vertical', extend='both') | ||
assert cb._values[0] >= 0.0 | ||
|
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.
One more blank line.
@cleanup | ||
def test_colorbar_lognorm_extension(): | ||
# Test that colorbar with lognorm is extended correctly | ||
ax = plt.gca() |
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.
Better to use plt.subplots
.
Current coverage is 66.45% (diff: 100%)@@ master #7552 diff @@
==========================================
Files 109 109
Lines 46780 46785 +5
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 31075 31093 +18
+ Misses 15705 15692 -13
Partials 0 0
|
restarted travis just to be sure. |
Appveyor failures look unrelated. |
Correctly extend a lognormed colorbar
Backported to v2.x as 58b92b2. |
Fixes #5201.