Menu

[r134]: / trunk / htdocs / examples / log_demo.py  Maximize  Restore  History

Download this file

16 lines (11 with data), 211 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
from matplotlib.matlab import *
dt = 0.01
t = arange(dt, 20.0, dt)
subplot(311)
semilogx(t, exp(-t/5.0))
subplot(312)
semilogx(t, sin(2*pi*t))
subplot(313)
loglog(t, exp(-t/10.0))
savefig('log_demo')
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.