equal
deleted
inserted
replaced
328 \item Also: PNG, PDF, PS, EPS, SVG, PDF |
328 \item Also: PNG, PDF, PS, EPS, SVG, PDF |
329 \end{itemize} |
329 \end{itemize} |
330 \inctime{5} |
330 \inctime{5} |
331 \end{frame} |
331 \end{frame} |
332 |
332 |
333 \subsection{Plots - Lines, Labels} |
333 \subsection{Plots - Lines, Labels, Legend} |
334 \begin{frame}[fragile] |
334 \begin{frame}[fragile] |
335 \frametitle{Basic plotting} |
335 \frametitle{Basic plotting} |
336 \begin{lstlisting} |
336 \begin{lstlisting} |
337 # Set properties of objects: |
337 # Set properties of objects: |
338 >>> l, = plot(x, sin(x)) |
338 >>> l, = plot(x, sin(x)) |
361 >>> annotate('maxima',xy=(0, 1), |
361 >>> annotate('maxima',xy=(0, 1), |
362 xytext=(1, 0.8), |
362 xytext=(1, 0.8), |
363 arrowprops=dict( |
363 arrowprops=dict( |
364 facecolor='black', |
364 facecolor='black', |
365 shrink=0.05)) |
365 shrink=0.05)) |
|
366 \end{lstlisting} |
|
367 \end{frame} |
|
368 |
|
369 \begin{frame}[fragile] |
|
370 \frametitle{Legends} |
|
371 \begin{lstlisting} |
|
372 >>> x = linspace(0, 2*pi, 1000) |
|
373 >>> plot(x, cos(5*x), 'r--', |
|
374 label='cosine') |
|
375 >>> plot(x, sin(5*x), 'g--', |
|
376 label='sine') |
|
377 >>> legend() |
|
378 # Or use: |
|
379 >>> legend(['cosine', 'sine']) |
366 \end{lstlisting} |
380 \end{lstlisting} |
367 \end{frame} |
381 \end{frame} |
368 |
382 |
369 \begin{frame}[fragile] |
383 \begin{frame}[fragile] |
370 \frametitle{Multiple figures} |
384 \frametitle{Multiple figures} |
681 \end{block} |
695 \end{block} |
682 \end{columns} |
696 \end{columns} |
683 \end{frame} |
697 \end{frame} |
684 |
698 |
685 \begin{frame}[fragile] \frametitle{Maps} |
699 \begin{frame}[fragile] \frametitle{Maps} |
686 \includegraphics[height=2.5in, interpolate=true]{data/plotmap} |
700 \includegraphics[height=2.3in, interpolate=true]{data/plotmap} |
687 \begin{center} |
701 \begin{center} |
688 \tiny |
702 \tiny |
689 For details see \url{http://matplotlib.sourceforge.net/screenshots/plotmap.py} |
703 For details see \url{http://matplotlib.sourceforge.net/screenshots/plotmap.py} |
690 \end{center} |
704 \end{center} |
691 \inctime{5} |
705 \inctime{5} |