Sophie

Sophie

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

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

.. _pylab_examples-subplot_toolbar:

pylab_examples example code: subplot_toolbar.py
===============================================



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

::

    #!/usr/bin/env python
    
    from pylab import *
    
    fig = figure()
    subplot(221)
    imshow(rand(100,100))
    subplot(222)
    imshow(rand(100,100))
    subplot(223)
    imshow(rand(100,100))
    subplot(224)
    imshow(rand(100,100))
    
    subplot_tool()
    show()
    

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