matplotlib

Previous topic

pylab_examples example code: hexbin_demo2.py

Next topic

pylab_examples example code: hist2d_log_demo.py

This Page

pylab_examples example code: hist2d_demo.pyΒΆ

(Source code, png)

../../_images/hist2d_demo1.png
from pylab import *
x = randn(1000)
y = randn(1000) + 5

# normal distribution center at x=0 and y=5
hist2d(x, y, bins=40)
show()

Keywords: python, matplotlib, pylab, example, codex (see Search examples)