|
|
pylab_examples_Examples 95_hist2d_log_demo. |
H.Kamifuji . |
from matplotlib.colors import LogNorm import matplotlib.pyplot as plt import numpy as np # normal distribution center at x=0 and y=5 x = np.random.randn(100000) y = np.random.randn(100000) + 5 plt.hist2d(x, y, bins=40, norm=LogNorm()) plt.colorbar() plt.show() |
![]() |
pylab_examples_Examples code: hist2d_log_demo.py |
|