Menu

[r3804]: / trunk / htdocs / screenshots / simple_plot.py  Maximize  Restore  History

Download this file

12 lines (9 with data), 194 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from pylab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s, linewidth=1.0)
xlabel('time (s)')
ylabel('voltage (mV)')
title('About as simple as it gets, folks')
grid(True)
show()