equal
deleted
inserted
replaced
|
1 from scipy import linspace, pi, sin |
|
2 from pylab import plot, legend, show, title |
|
3 from pylab import xlabel, ylabel |
|
4 |
|
5 x = linspace(-2*pi,2*pi,100) |
|
6 plot(x,sin(x)) |
|
7 legend(['sin(x)']) |
|
8 title('Sine plot') |
|
9 xlabel('x') |
|
10 ylabel('sin(x)') |
|
11 show() |