day1/session1.tex
branchscipy2010
changeset 414 68ef3dced7a0
parent 413 984d8a3394cc
child 415 331aaca9d779
equal deleted inserted replaced
413:984d8a3394cc 414:68ef3dced7a0
   556 
   556 
   557 \begin{frame}[fragile]
   557 \begin{frame}[fragile]
   558 \frametitle{Review Problem \ldots}
   558 \frametitle{Review Problem \ldots}
   559 \alert{Plotting \ldots}
   559 \alert{Plotting \ldots}
   560 \begin{lstlisting}
   560 \begin{lstlisting}
   561 In []: x=linspace(-5*pi, 5*pi, 500)
   561 In []: x = linspace(-5*pi, 5*pi, 500)
   562 In []: plot(x, x, 'b')
   562 In []: plot(x, x, 'b')
   563 In []: plot(x, -x, 'b')
   563 In []: plot(x, -x, 'b')
   564 In []: plot(x, sin(x), 'g', linewidth=2)
   564 In []: plot(x, sin(x), 'g', linewidth=2)
   565 In []: plot(x, x*sin(x), 'r', 
   565 In []: plot(x, x*sin(x), 'r', 
   566             linewidth=3)
   566             linewidth=3)