You are reading an old version of the documentation (v1.3.1). For the latest version see https://matplotlib.org/stable/
matplotlib

This Page

pylab_examples example code: log_test.pyΒΆ

(Source code, png, hires.png, pdf)

../../_images/log_test.png
#!/usr/bin/env python
from pylab import *

dt = 0.01
t = arange(dt, 20.0, dt)

semilogx(t, exp(-t/5.0))
grid(True)

show()

Keywords: python, matplotlib, pylab, example, codex (see Search examples)