.. _pylab_examples-fill_demo:

pylab_examples example code: fill_demo.py
=========================================



.. plot:: /media/TOSHI/temp/numpy_scipy_matplotlib/matplotlib/matplotlib-1.1.1~rc2/doc/mpl_examples/pylab_examples/fill_demo.py

::

    #!/usr/bin/env python
    import numpy as np
    import matplotlib.pyplot as plt
    
    t = np.arange(0.0, 1.01, 0.01)
    s = np.sin(2*2*np.pi*t)
    
    plt.fill(t, s*np.exp(-5*t), 'r')
    plt.grid(True)
    plt.show()
    

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