using python modules/sine.py
author Anoop Jacob Thomas<anoop@fossee.in>
Thu, 14 Oct 2010 14:11:54 +0530
changeset 326 c4cb18752ade
parent 261 c7f0069d698a
permissions -rw-r--r--
added history to getting started with for.

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()