Download this file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/env python from matplotlib.matlab import * dt = 0.01 t = arange(dt, 20.0, dt) subplot(311) semilogy(t, exp(-t/5.0)) subplot(312) semilogx(t, sin(2*pi*t)) subplot(313) loglog(t, exp(-t/10.0)) grid(True) #savefig('log_demo') show()