diff options
author | Prabhu Ramachandran | 2010-06-21 03:47:30 -0400 |
---|---|---|
committer | Prabhu Ramachandran | 2010-06-21 03:47:30 -0400 |
commit | e9c69037f3ebb20b9dc6baa1f356c8736a861bbd (patch) | |
tree | d8f795bda3f76a0c92d57ec650b2c4f2130e6614 /day1 | |
parent | 0b0b86cf211e44d479f0b6cccd083f6a8260248f (diff) | |
parent | 9524a836dcc4d2aedc9ba6643d40530e6f22fd8c (diff) | |
download | workshops-more-scipy-e9c69037f3ebb20b9dc6baa1f356c8736a861bbd.tar.gz workshops-more-scipy-e9c69037f3ebb20b9dc6baa1f356c8736a861bbd.tar.bz2 workshops-more-scipy-e9c69037f3ebb20b9dc6baa1f356c8736a861bbd.zip |
Merging changes from Chris.
--HG--
branch : scipy2010
Diffstat (limited to 'day1')
-rw-r--r-- | day1/exercise/four_plot.py | 2 | ||||
-rw-r--r-- | day1/session1.tex | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/day1/exercise/four_plot.py b/day1/exercise/four_plot.py index 5417ee5..4130241 100644 --- a/day1/exercise/four_plot.py +++ b/day1/exercise/four_plot.py @@ -1,4 +1,4 @@ -x=linspace(-5*pi, 5*pi, 500) +x = linspace(-5*pi, 5*pi, 500) plot(x, x, 'b') plot(x, -x, 'b') plot(x, sin(x), 'g', linewidth=2) diff --git a/day1/session1.tex b/day1/session1.tex index f29cff1..4c26942 100644 --- a/day1/session1.tex +++ b/day1/session1.tex @@ -159,11 +159,11 @@ Day 1, Session 1} \item Editor - we recommend \alert{scite} \item Data files: \begin{itemize} - \item \typ{sslc1.txt} + \item \typ{anag.txt} + \item \typ{holmes.txt} \item \typ{pendulum.txt} \item \typ{pos.txt} - \item \typ{holmes.txt} - \item \typ{anag.txt} + \item \typ{sslc1.txt} \end{itemize} \item Python scripts: \begin{itemize} @@ -531,9 +531,9 @@ In []: plot? \vspace*{0.5in} \item Try: \begin{lstlisting} -In []: plot? +In []: plot?? \end{lstlisting} - to see source code + to see the source code for \typ{plot} \end{itemize} @@ -558,7 +558,7 @@ In []: plot? \frametitle{Review Problem \ldots} \alert{Plotting \ldots} \begin{lstlisting} -In []: x=linspace(-5*pi, 5*pi, 500) +In []: x = linspace(-5*pi, 5*pi, 500) In []: plot(x, x, 'b') In []: plot(x, -x, 'b') In []: plot(x, sin(x), 'g', linewidth=2) @@ -602,7 +602,7 @@ Use the \typ{\%save} \alert{magic} command of IPython \begin{block}{} \typ{\%save script_name line_numbers} \end{block} -Line numbers can be specified individually separated by commas or as a range separated by a dash.\\ +Line numbers can be specified individually separated by spaces or as a range separated by a dash.\\ \begin{block}{} \typ{\%save four_plot.py} \alert{\typ{ 16 18-27}} \\ \end{block} |