Skip to content

Commit d33877c

Browse files
committed
Add example for logarithmic hist2d
1 parent 4e82fa8 commit d33877c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from matplotlib.colors import LogNorm
2+
from pylab import *
3+
4+
#normal distribution center at x=0 and y=5
5+
x = randn(100000)
6+
y = randn(100000)+5
7+
8+
hist2d(x, y, bins=40, norm=LogNorm())
9+
colorbar()
10+
show()

0 commit comments

Comments
 (0)