Menu

[r101]: / trunk / htdocs / screenshots / log_shot.py  Maximize  Restore  History

Download this file

25 lines (18 with data), 384 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from matplotlib.matlab import *
dt = 0.01
t = arange(dt, 20.0, dt)
subplot(211)
semilogx(t, sin(2*pi*t))
ylabel('semilog')
set(gca(), 'xlim', [0,20])
set(gca(), 'xticklabels', [])
grid('on')
subplot(212)
loglog(t, exp(-t/10.0))
grid('on')
set(gca(), 'xlim', [0,20])
xlabel('time (s)')
ylabel('loglog')
savefig('log_shot_small', dpi=60)
savefig('log_shot_large', dpi=120)
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.