Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > a44f8c7e78ee9c5838c1fb080c9e7630 > files > 1388

python-matplotlib-doc-1.1.1-1mdv2010.1.noarch.rpm

.. _pylab_examples-pcolor_small:

pylab_examples example code: pcolor_small.py
============================================



.. plot:: /home/mandrake/rpm/BUILD/matplotlib-1.1.1/doc/mpl_examples/pylab_examples/pcolor_small.py

::

    #!/usr/bin/env python
    
    from pylab import *
    
    Z = rand(6,10)
    
    subplot(2,1,1)
    c = pcolor(Z)
    title('default: no edges')
    
    subplot(2,1,2)
    c = pcolor(Z, edgecolors='k', linewidths=4)
    title('thick edges')
    
    show()
    

Keywords: python, matplotlib, pylab, example, codex (see :ref:`how-to-search-examples`)