using python modules/sine.py
author Puneeth Chaganti <punchagan@fossee.in>
Fri, 05 Nov 2010 21:42:20 +0530
changeset 381 5415cb1bb4af
parent 261 c7f0069d698a
permissions -rw-r--r--
Changes to manipulating strings, based on review.

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