diff options
Diffstat (limited to 'using python modules/sine.py')
-rw-r--r-- | using python modules/sine.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/using python modules/sine.py b/using python modules/sine.py new file mode 100644 index 0000000..109308e --- /dev/null +++ b/using python modules/sine.py @@ -0,0 +1,11 @@ +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() |