Menu

[r1418]: / trunk / htdocs / examples / print_ps.py  Maximize  Restore  History

Download this file

13 lines (11 with data), 247 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from matplotlib.matlab import *
t = arange(0.0, 2.0, 0.01)
s1 = sin(2*pi*t)
s2 = sin(2*2*pi*t)
plot(t, s1, 'r-', t, s2, 'g--')
legend( ('Signal1', 'Signal2') )
xlabel('time')
ylabel('volts')
savefig('test.ps')
title('This is a recording')
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.