Permalink
Browse files

Add example for logarithmic hist2d

  • Loading branch information...
1 parent 4e82fa8 commit d33877c9da5f05da467b99cc12c20b85bf255f6a @bgamari bgamari committed Aug 28, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 examples/pylab_examples/hist2d_log_demo.py
@@ -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()

0 comments on commit d33877c

Please sign in to comment.