1
1
Fork 0

Simple plot example.

This commit is contained in:
Peter H. Fröhlich 2015-02-12 17:15:01 -05:00
parent 3e20bc1154
commit fc866e07e4
1 changed files with 13 additions and 0 deletions

13
plot.py Normal file
View File

@ -0,0 +1,13 @@
# from the pylab documentation
from pylab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s)
xlabel('time (s)')
ylabel('voltage (mV)')
title('About as simple as it gets, folks')
grid(True)
savefig("plot.pdf")