Sophie

Sophie

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

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

.. _pylab_examples-geo_demo:

pylab_examples example code: geo_demo.py
========================================



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

::

    import numpy as np
    #np.seterr("raise")
    
    from pylab import *
    
    subplot(221, projection="aitoff")
    title("Aitoff")
    grid(True)
    
    subplot(222, projection="hammer")
    title("Hammer")
    grid(True)
    
    subplot(223, projection="lambert")
    title("Lambert")
    grid(True)
    
    subplot(224, projection="mollweide")
    title("Mollweide")
    grid(True)
    
    show()
    

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