Sophie

Sophie

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

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

.. _pylab_examples-scatter_demo:

pylab_examples example code: scatter_demo.py
============================================



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

::

    #!/usr/bin/env python
    from pylab import *
    
    N = 30
    x = 0.9*rand(N)
    y = 0.9*rand(N)
    area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses
    scatter(x,y,s=area, marker='^', c='r')
    
    show()
    

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