.. _pylab_examples-hist2d_demo:

pylab_examples example code: hist2d_demo.py
===========================================



.. plot:: /build/matplotlib-ntJFVk/matplotlib-1.3.1/doc/mpl_examples/pylab_examples/hist2d_demo.py

::

    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 :ref:`how-to-search-examples`)