diff options
author | Anoop Jacob Thomas | 2010-12-18 12:54:49 +0530 |
---|---|---|
committer | Anoop Jacob Thomas | 2010-12-18 12:54:49 +0530 |
commit | 8237dcc199da39222a5ad230506a67612c8f42bb (patch) | |
tree | 10d36ba208a172cd9415c92b7f76adc1b432f020 /embellishing_a_plot/slides.tex | |
parent | 9ef42a846bf92217dcca5aa3ae084e6dc9470b82 (diff) | |
download | st-scripts-8237dcc199da39222a5ad230506a67612c8f42bb.tar.gz st-scripts-8237dcc199da39222a5ad230506a67612c8f42bb.tar.bz2 st-scripts-8237dcc199da39222a5ad230506a67612c8f42bb.zip |
Made some changes to the script embellishing a plot, but it still needs changes.
Diffstat (limited to 'embellishing_a_plot/slides.tex')
-rw-r--r-- | embellishing_a_plot/slides.tex | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/embellishing_a_plot/slides.tex b/embellishing_a_plot/slides.tex index 30b69cc..e71645b 100644 --- a/embellishing_a_plot/slides.tex +++ b/embellishing_a_plot/slides.tex @@ -1,4 +1,4 @@ -% Created 2010-10-10 Sun 17:32 +% Created 2010-12-18 Sat 12:25 \documentclass[presentation]{beamer} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} @@ -8,6 +8,7 @@ \usepackage{float} \usepackage{wrapfig} \usepackage{soul} +\usepackage{t1enc} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} @@ -62,11 +63,10 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries} \frametitle{Solution 1} \label{sec-3} -\lstset{language=Python} -\begin{lstlisting} +\begin{verbatim} In []: clf() In []: plot(x, sin(x), 'b', linewidth=3) -\end{lstlisting} +\end{verbatim} \end{frame} \begin{frame} \frametitle{Question 2} @@ -78,11 +78,10 @@ In []: plot(x, sin(x), 'b', linewidth=3) \frametitle{Solution 2} \label{sec-5} -\lstset{language=Python} -\begin{lstlisting} +\begin{verbatim} In []: clf() In []: plot(x, cos(x), 'go') -\end{lstlisting} +\end{verbatim} \end{frame} \begin{frame} \frametitle{Question 3} @@ -94,11 +93,10 @@ In []: plot(x, cos(x), 'go') \frametitle{Solution 3} \label{sec-7} -\lstset{language=Python} -\begin{lstlisting} +\begin{verbatim} In []: clf() In []: plot(x, cos(x), 'r--') -\end{lstlisting} +\end{verbatim} \end{frame} \begin{frame} \frametitle{Question 4} @@ -111,10 +109,9 @@ In []: plot(x, cos(x), 'r--') \frametitle{Solution 4} \label{sec-9} -\lstset{language=Python} -\begin{lstlisting} +\begin{verbatim} In []: title("$Parabolic function -x^2+4x-5$") -\end{lstlisting} +\end{verbatim} \end{frame} \begin{frame} \frametitle{Question 5} @@ -126,11 +123,10 @@ In []: title("$Parabolic function -x^2+4x-5$") \frametitle{Solution 5} \label{sec-11} -\lstset{language=Python} -\begin{lstlisting} +\begin{verbatim} In []: xlabel("$x$") In []: yalbel("$f(x)$") -\end{lstlisting} +\end{verbatim} \end{frame} \begin{frame} \frametitle{Question 6} @@ -143,10 +139,9 @@ In []: yalbel("$f(x)$") \frametitle{Solution 6} \label{sec-13} -\lstset{language=Python} -\begin{lstlisting} +\begin{verbatim} In []: annotate("root", xy=(-4,0)) -\end{lstlisting} +\end{verbatim} \end{frame} \begin{frame} \frametitle{Question 7} @@ -159,11 +154,10 @@ In []: annotate("root", xy=(-4,0)) \frametitle{Solution 7} \label{sec-15} -\lstset{language=Python} -\begin{lstlisting} +\begin{verbatim} In []: xlim(-1, 3) In []: ylim(-15, 0) -\end{lstlisting} +\end{verbatim} \end{frame} \begin{frame} \frametitle{Summary} |