Former-commit-id:2b462d8665
[formerly133dc97f67
] [formerlya02aeb236c
] [formerlya02aeb236c
[formerly9f19e3f712
]] [formerly2b462d8665
[formerly133dc97f67
] [formerlya02aeb236c
] [formerlya02aeb236c
[formerly9f19e3f712
]] [formerly06a8b51d6d
[formerlya02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]]] Former-commit-id:06a8b51d6d
Former-commit-id:2c3569dd39
[formerly9bb8decbcf
] [formerly8e80217e59
] [formerlye2ecdcfe33
[formerly377dcd10b9
] [formerly8e80217e59
[formerly3360eb6c5f
]]] Former-commit-id:e2ecdcfe33
[formerly377dcd10b9
] Former-commit-id:e2ecdcfe33
Former-commit-id:7dbd17a5aa
29 lines
424 B
Python
Executable file
29 lines
424 B
Python
Executable file
#!/usr/bin/env python
|
|
# Working with multiple figure windows and subplots
|
|
from pylab import *
|
|
|
|
t = arange(0.0, 2.0, 0.01)
|
|
s1 = sin(2*pi*t)
|
|
s2 = sin(4*pi*t)
|
|
|
|
figure(1)
|
|
subplot(211)
|
|
plot(t,s1)
|
|
subplot(212)
|
|
plot(t,2*s1)
|
|
|
|
figure(2)
|
|
plot(t,s2)
|
|
|
|
# now switch back to figure 1 and make some changes
|
|
figure(1)
|
|
subplot(211)
|
|
plot(t,s2, 'gs')
|
|
setp(gca(), 'xticklabels', [])
|
|
|
|
figure(1)
|
|
savefig('fig1')
|
|
figure(2)
|
|
savefig('fig2')
|
|
|
|
show()
|