10000 Correctly extend a lognormed colorbar by dstansby · Pull Request #7552 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 3 commits into from
Dec 3, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cleanup lognorm colorbar test
  • Loading branch information
dstansby committed Dec 3, 2016
commit 56cb141d60fb8dcbc3d0685c74cb8b7bf5172f6c
3 changes: 2 additions & 1 deletion lib/matplotlib/tests/test_colorbar.py
Original file line 916B number Diff line number Diff line change
Expand Up @@ -328,11 +328,12 @@ def test_colorbar_get_ticks():
@cleanup
def test_colorbar_lognorm_extension():
# Test that colorbar with lognorm is extended correctly
ax = plt.gca()
f, ax = plt.subplots()
cb = ColorbarBase(ax, norm=LogNorm(vmin=0.1, vmax=1000.0),
orientation='vertical', extend='both')
assert cb._values[0] >= 0.0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more blank line.


if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
0