using python modules/sine.py
author Amit Sethi
Wed, 10 Nov 2010 02:12:09 +0530
changeset 434 c8ffd52305ff
parent 261 c7f0069d698a
permissions -rw-r--r--
Changed in Plotting data and merged heads

from scipy import linspace, pi, sin
from pylab import plot, legend, show, title
from pylab import xlabel, ylabel

x = linspace(-2*pi,2*pi,100)
plot(x,sin(x))
legend(['sin(x)'])
title('Sine plot')
xlabel('x')
ylabel('sin(x)')
show()