.. _pylab_examples-log_test:

pylab_examples example code: log_test.py
========================================



.. plot:: /home/tcaswell/source/p/matplotlib/doc/mpl_examples/pylab_examples/log_test.py

::

    import matplotlib.pyplot as plt
    import numpy as np
    
    dt = 0.01
    t = np.arange(dt, 20.0, dt)
    
    plt.semilogx(t, np.exp(-t/5.0))
    plt.grid(True)
    
    plt.show()
    

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