equal
deleted
inserted
replaced
149 \begin{frame}[fragile] |
149 \begin{frame}[fragile] |
150 \frametitle{Problem 2} |
150 \frametitle{Problem 2} |
151 \begin{columns} |
151 \begin{columns} |
152 \column{0.5\textwidth} |
152 \column{0.5\textwidth} |
153 \hspace*{-0.5in} |
153 \hspace*{-0.5in} |
154 \includegraphics[height=2in, interpolate=true]{data/points} |
154 \includegraphics[height=2in, interpolate=true]{data/triangle} |
155 \column{0.45\textwidth} |
155 \column{0.45\textwidth} |
156 \begin{block}{Line between two points} |
156 \begin{block}{Line between two points} |
157 \tiny |
157 \tiny |
158 \begin{lstlisting} |
158 \begin{lstlisting} |
159 In []: x = [1, 5] |
159 In []: x = [3, 1] |
160 In []: y = [1, 4] |
160 In []: y = [2, -3] |
|
161 In []: z = [-2, 4] |
161 In []: plot(x, y) |
162 In []: plot(x, y) |
|
163 In []: plot(y, z) |
|
164 In []: plot(x, z) |
162 \end{lstlisting} |
165 \end{lstlisting} |
163 \end{block} |
166 \end{block} |
164 \end{columns} |
167 \end{columns} |
165 Line can be plotted using arrays of coordinates. |
168 Line can be plotted using arrays of coordinates. |
166 \pause |
169 \pause |