Skip to content

Add log option to Axes.hist2d #1061

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 2 commits into from
Sep 4, 2012
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
Add example for logarithmic hist2d
  • Loading branch information
bgamari committed Aug 30, 2012
commit d33877c9da5f05da467b99cc12c20b85bf255f6a
10 changes: 10 additions & 0 deletions examples/pylab_examples/hist2d_log_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from matplotlib.colors import LogNorm
from pylab import *

#normal distribution center at x=0 and y=5
x = randn(100000)
y = randn(100000)+5

hist2d(x, y, bins=40, norm=LogNorm())
colorbar()
show()