Menu

[r4734]: / branches / transforms / examples / symlog_demo.py  Maximize  Restore  History

Download this file

30 lines (23 with data), 431 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
from pylab import *
dt = 1.0
x = arange(-50.0, 50.0, dt)
y = arange(0, 100.0, dt)
subplot(311)
plot(x, y)
xscale('symlog')
ylabel('symlogx')
grid(True)
gca().xaxis.grid(True, which='minor') # minor grid on too
subplot(312)
plot(y, x)
yscale('symlog')
ylabel('symlogy')
subplot(313)
plot(x, npy.sin(x / 3.0))
xscale('symlog')
yscale('symlog')
grid(True)
ylabel('symlog both')
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.