author | Prabhu Ramachandran <prabhu@aero.iitb.ac.in> |
Mon, 28 Jun 2010 00:14:02 -0500 | |
branch | scipy2010 |
changeset 426 | 7d8738ce004d |
parent 415 | 331aaca9d779 |
child 427 | 66d296ff31b9 |
permissions | -rw-r--r-- |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
141
fccf675946bf
Made usage of FOSSEE consistent; removed all instances of Team, Group.
Puneeth Chaganti <punchagan@fossee.in>
parents:
140
diff
changeset
|
2 |
%Tutorial slides on Python. |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
3 |
% |
141
fccf675946bf
Made usage of FOSSEE consistent; removed all instances of Team, Group.
Puneeth Chaganti <punchagan@fossee.in>
parents:
140
diff
changeset
|
4 |
% Author: FOSSEE |
fccf675946bf
Made usage of FOSSEE consistent; removed all instances of Team, Group.
Puneeth Chaganti <punchagan@fossee.in>
parents:
140
diff
changeset
|
5 |
% Copyright (c) 2009, FOSSEE, IIT Bombay |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
6 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
7 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
8 |
\documentclass[14pt,compress]{beamer} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
9 |
%\documentclass[draft]{beamer} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
10 |
%\documentclass[compress,handout]{beamer} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
11 |
%\usepackage{pgfpages} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
12 |
%\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
13 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
14 |
% Modified from: generic-ornate-15min-45min.de.tex |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
15 |
\mode<presentation> |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
16 |
{ |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
17 |
\usetheme{Warsaw} |
239
8953675dc056
Added slide numbers.
Puneeth Chaganti <punchagan@fossee.in>
parents:
225
diff
changeset
|
18 |
\useoutertheme{infolines} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
19 |
\setbeamercovered{transparent} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
20 |
} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
21 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
22 |
\usepackage[english]{babel} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
23 |
\usepackage[latin1]{inputenc} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
24 |
%\usepackage{times} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
25 |
\usepackage[T1]{fontenc} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
26 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
27 |
% Taken from Fernando's slides. |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
28 |
\usepackage{ae,aecompl} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
29 |
\usepackage{mathpazo,courier,euler} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
30 |
\usepackage[scaled=.95]{helvet} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
31 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
32 |
\definecolor{darkgreen}{rgb}{0,0.5,0} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
33 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
34 |
\usepackage{listings} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
35 |
\lstset{language=Python, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
36 |
basicstyle=\ttfamily\bfseries, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
37 |
commentstyle=\color{red}\itshape, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
38 |
stringstyle=\color{darkgreen}, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
39 |
showstringspaces=false, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
40 |
keywordstyle=\color{blue}\bfseries} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
41 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
42 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
43 |
% Macros |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
44 |
\setbeamercolor{emphbar}{bg=blue!20, fg=black} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
45 |
\newcommand{\emphbar}[1] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
46 |
{\begin{beamercolorbox}[rounded=true]{emphbar} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
47 |
{#1} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
48 |
\end{beamercolorbox} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
49 |
} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
50 |
\newcounter{time} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
51 |
\setcounter{time}{0} |
279
e7ce6f9d7e15
Added Striding in session4.
Puneeth Chaganti <punchagan@fossee.in>
parents:
265
diff
changeset
|
52 |
\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
53 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
54 |
\newcommand{\typ}[1]{\lstinline{#1}} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
55 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
56 |
\newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}} } |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
57 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
58 |
%%% This is from Fernando's setup. |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
59 |
% \usepackage{color} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
60 |
% \definecolor{orange}{cmyk}{0,0.4,0.8,0.2} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
61 |
% % Use and configure listings package for nicely formatted code |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
62 |
% \usepackage{listings} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
63 |
% \lstset{ |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
64 |
% language=Python, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
65 |
% basicstyle=\small\ttfamily, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
66 |
% commentstyle=\ttfamily\color{blue}, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
67 |
% stringstyle=\ttfamily\color{orange}, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
68 |
% showstringspaces=false, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
69 |
% breaklines=true, |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
70 |
% postbreak = \space\dots |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
71 |
% } |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
72 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
73 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
74 |
% Title page |
180
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
75 |
\title[Interactive Plotting]{Python for Science and Engg: Interactive Plotting} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
76 |
|
405 | 77 |
\author[FOSSEE group] {FOSSEE} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
78 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
79 |
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} |
405 | 80 |
\date[] {SciPy 2010, Introductory tutorials,\\ |
81 |
Day 1, Session 1} |
|
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
82 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
83 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
84 |
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
85 |
%\logo{\pgfuseimage{iitmlogo}} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
86 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
87 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
88 |
%% Delete this, if you do not want the table of contents to pop up at |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
89 |
%% the beginning of each subsection: |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
90 |
\AtBeginSubsection[] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
91 |
{ |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
92 |
\begin{frame}<beamer> |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
93 |
\frametitle{Outline} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
94 |
\tableofcontents[currentsection,currentsubsection] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
95 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
96 |
} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
97 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
98 |
\AtBeginSection[] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
99 |
{ |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
100 |
\begin{frame}<beamer> |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
101 |
\frametitle{Outline} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
102 |
\tableofcontents[currentsection,currentsubsection] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
103 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
104 |
} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
105 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
106 |
% If you wish to uncover everything in a step-wise fashion, uncomment |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
107 |
% the following command: |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
108 |
%\beamerdefaultoverlayspecification{<+->} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
109 |
|
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
110 |
%%\includeonlyframes{current,current1,current2,current3,current4,current5,current6} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
111 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
112 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
113 |
% DOCUMENT STARTS |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
114 |
\begin{document} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
115 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
116 |
\begin{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
117 |
\maketitle |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
118 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
119 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
120 |
%% \begin{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
121 |
%% \frametitle{Outline} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
122 |
%% \tableofcontents |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
123 |
%% % You might wish to add the option [pausesections] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
124 |
%% \end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
125 |
|
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
126 |
\begin{frame} |
426
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
127 |
\frametitle{Acknowledgement} |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
128 |
\Large |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
129 |
\begin{center} |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
130 |
\alert{FOSSEE group (\url{fossee.in})} \\ |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
131 |
based at\\ |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
132 |
\alert{IIT Bombay}\\ |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
133 |
and funded by\\ |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
134 |
The National Mission on Education through ICT, \\ |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
135 |
\alert{Ministry of HRD, India} |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
136 |
\end{center} |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
137 |
\end{frame} |
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
138 |
|
7d8738ce004d
Adding an acknowledgement slide to session 1. Minor changes to session
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
415
diff
changeset
|
139 |
\begin{frame} |
401
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
140 |
\frametitle{Tutorial Schedule: Day 1} |
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
141 |
\begin{description} |
405 | 142 |
\item[Session 1-2] 08:00--10:00 |
143 |
\item[Coffee Break] 10:00--10:20 |
|
144 |
\item[Session 3-4] 10:20--12:20 |
|
145 |
\item[Lunch Break] 12:20--13:40 |
|
401
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
146 |
\item[Quiz 1] 13:40--13:55 |
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
147 |
\item[Exercises] 14:00--14:40 |
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
148 |
\item[Session 5] 14:40--15:40 |
405 | 149 |
\item[Coffee Break] 15:40--16:00 |
401
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
150 |
\item[Quiz 2] 16:00--16:15 |
405 | 151 |
\item[Session 6-7] 16:15--18:00 |
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
152 |
\end{description} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
153 |
\end{frame} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
154 |
|
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
155 |
\begin{frame} |
401
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
156 |
\frametitle{Tutorial Schedule: Day 2} |
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
157 |
\begin{description} |
401
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
158 |
\item[Session 1] 08:00--9:00 |
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
159 |
\item[Session 2] 9:00--10:00 |
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
160 |
\item[Coffee] 10:00--10:20 |
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
161 |
\item[Quiz 3] 10:20--10:35 |
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
162 |
\item[Exercises] 10:35--11:30 |
1f4dcd5ca68c
Minor changes to schedule.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
397
diff
changeset
|
163 |
\item[Session 3] 11:30--12:20 |
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
164 |
\end{description} |
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
165 |
\end{frame} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
166 |
|
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
167 |
\section{Checklist} |
220
15306dad3b81
Corrections to day1 Session1, day2 Session 3 and 4.
Shantanu <shantanu@fossee.in>
parents:
215
diff
changeset
|
168 |
\begin{frame} |
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
169 |
\frametitle{Checklist} |
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
170 |
\begin{enumerate} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
171 |
\item IPython |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
172 |
\item Editor - we recommend \alert{scite} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
173 |
\item Data files: |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
174 |
\begin{itemize} |
413
984d8a3394cc
Minor edits. Reorder dependency files so easier to eyeball with ls output. Fix typo for showing source in ipython.
Christopher Burns <chris.d.burns@gmail.com>
parents:
407
diff
changeset
|
175 |
\item \typ{anag.txt} |
984d8a3394cc
Minor edits. Reorder dependency files so easier to eyeball with ls output. Fix typo for showing source in ipython.
Christopher Burns <chris.d.burns@gmail.com>
parents:
407
diff
changeset
|
176 |
\item \typ{holmes.txt} |
382
41c34770d63a
Updated sessions of day 1 with the corrections from GRD.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
381
diff
changeset
|
177 |
\item \typ{pendulum.txt} |
41c34770d63a
Updated sessions of day 1 with the corrections from GRD.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
381
diff
changeset
|
178 |
\item \typ{pos.txt} |
413
984d8a3394cc
Minor edits. Reorder dependency files so easier to eyeball with ls output. Fix typo for showing source in ipython.
Christopher Burns <chris.d.burns@gmail.com>
parents:
407
diff
changeset
|
179 |
\item \typ{sslc1.txt} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
180 |
\end{itemize} |
265
ac31e2f3754e
Changes to session1, 5 and 6 at Goa.
Puneeth Chaganti <punchagan@fossee.in>
parents:
264
diff
changeset
|
181 |
\item Python scripts: |
ac31e2f3754e
Changes to session1, 5 and 6 at Goa.
Puneeth Chaganti <punchagan@fossee.in>
parents:
264
diff
changeset
|
182 |
\begin{itemize} |
382
41c34770d63a
Updated sessions of day 1 with the corrections from GRD.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
381
diff
changeset
|
183 |
\item \typ{sslc_allreg.py} |
41c34770d63a
Updated sessions of day 1 with the corrections from GRD.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
381
diff
changeset
|
184 |
\item \typ{sslc_science.py} |
265
ac31e2f3754e
Changes to session1, 5 and 6 at Goa.
Puneeth Chaganti <punchagan@fossee.in>
parents:
264
diff
changeset
|
185 |
\end{itemize} |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
186 |
\item Images |
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
187 |
\begin{itemize} |
382
41c34770d63a
Updated sessions of day 1 with the corrections from GRD.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
381
diff
changeset
|
188 |
\item \typ{lena.png} |
41c34770d63a
Updated sessions of day 1 with the corrections from GRD.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
381
diff
changeset
|
189 |
\item \typ{smoothing.gif} |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
190 |
\end{itemize} |
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
191 |
\end{enumerate} |
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
192 |
\end{frame} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
193 |
|
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
194 |
\begin{frame} |
405 | 195 |
\frametitle{About the Tutorial} |
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
196 |
\begin{block}{Intended Audience} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
197 |
\begin{itemize} |
405 | 198 |
\item Engg., Mathematics and Science researchers with a |
199 |
reasonable programming background. |
|
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
200 |
\end{itemize} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
201 |
\end{block} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
202 |
|
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
203 |
\begin{block}{Goal: Successful participants will be able to} |
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
204 |
\begin{itemize} |
342 | 205 |
\item Use Python as plotting, computational tool. |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
206 |
\item Understand how to use Python as a scripting and problem solving language. |
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
207 |
\end{itemize} |
215
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
208 |
\end{block} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
209 |
\end{frame} |
b69d0bdb136c
Session details,session 1 Day 1, 3Dploting->session3.
Shantanu <shantanu@fossee.in>
parents:
184
diff
changeset
|
210 |
|
384
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
211 |
%% \begin{frame}[fragile] |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
212 |
%% \frametitle{The Python interpreter \ldots} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
213 |
%% \begin{block}{} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
214 |
%% \begin{lstlisting} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
215 |
%% $ python |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
216 |
%% \end{lstlisting} %$ |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
217 |
%% \end{block} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
218 |
%% \begin{lstlisting} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
219 |
%% >>> print "Hello, World!" |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
220 |
%% Hello, World! |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
221 |
%% \end{lstlisting} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
222 |
%% Exiting |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
223 |
%% \begin{lstlisting} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
224 |
%% >>> ^D(Ctrl-D) |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
225 |
%% $ |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
226 |
%% \end{lstlisting} %$ |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
227 |
%% \end{frame} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
228 |
|
405 | 229 |
\section{Starting up IPython} |
377 | 230 |
\begin{frame}[fragile] |
231 |
\frametitle{Starting up \ldots} |
|
232 |
\begin{block}{} |
|
233 |
\begin{lstlisting} |
|
384
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
234 |
$ ipython -pylab |
377 | 235 |
\end{lstlisting} %$ |
236 |
\end{block} |
|
237 |
\begin{lstlisting} |
|
238 |
In []: print "Hello, World!" |
|
239 |
Hello, World! |
|
240 |
\end{lstlisting} |
|
241 |
Exiting |
|
242 |
\begin{lstlisting} |
|
243 |
In []: ^D(Ctrl-D) |
|
244 |
Do you really want to exit([y]/n)? y |
|
245 |
\end{lstlisting} |
|
246 |
\end{frame} |
|
247 |
||
384
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
248 |
%% \section{Ipython with magic} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
249 |
%% \begin{frame}[fragile] |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
250 |
%% \frametitle{Let the magic begin \ldots} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
251 |
%% \begin{itemize} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
252 |
%% \item \alert{IPython is an improved interpreter}\\ |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
253 |
%% \item \alert{Recommended for Scientific and Computing work}\\ |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
254 |
%% \end{itemize} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
255 |
%% \begin{block}{} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
256 |
%% \begin{lstlisting} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
257 |
%% $ ipython -pylab |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
258 |
%% \end{lstlisting} %$ |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
259 |
%% \end{block} |
9f9fddf7e37c
MNIT Jaipur changes.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
382
diff
changeset
|
260 |
%% \end{frame} |
377 | 261 |
|
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
262 |
\section{Loops} |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
263 |
\begin{frame}[fragile] |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
264 |
\frametitle{Loops} |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
265 |
Breaking out of loops |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
266 |
\begin{lstlisting} |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
267 |
In []: while True: |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
268 |
...: print "Hello, World!" |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
269 |
...: |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
270 |
Hello, World! |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
271 |
Hello, World!^C(Ctrl-C) |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
272 |
------------------------------------ |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
273 |
KeyboardInterrupt |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
274 |
\end{lstlisting} |
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
275 |
\end{frame} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
276 |
|
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
277 |
\section{Plotting} |
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
278 |
\subsection{Drawing plots} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
279 |
\begin{frame}[fragile] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
280 |
\frametitle{First Plot} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
281 |
\begin{columns} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
282 |
\column{0.25\textwidth} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
283 |
\hspace*{-0.5in} |
184
9efa777af2e2
Reworked on Session 3 day 1 slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
182
diff
changeset
|
284 |
\includegraphics[height=2in, interpolate=true]{data/firstplot} |
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
285 |
\column{0.8\textwidth} |
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
286 |
\begin{block}{} |
224
668f88f20218
Added differentiation example.
Puneeth Chaganti <punchagan@fossee.in>
parents:
184
diff
changeset
|
287 |
\begin{small} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
288 |
\begin{lstlisting} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
289 |
In []: x = linspace(0, 2*pi, 50) |
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
290 |
In []: plot(x, sin(x)) |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
291 |
\end{lstlisting} |
224
668f88f20218
Added differentiation example.
Puneeth Chaganti <punchagan@fossee.in>
parents:
184
diff
changeset
|
292 |
\end{small} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
293 |
\end{block} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
294 |
\end{columns} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
295 |
\end{frame} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
296 |
|
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
297 |
\begin{frame}[fragile] |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
298 |
\frametitle{Walkthrough} |
180
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
299 |
\begin{block}{\typ{x = linspace(start, stop, num)} } |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
300 |
returns \typ{num} evenly spaced points, in the interval [\typ{start}, \typ{stop}]. |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
301 |
\end{block} |
180
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
302 |
\begin{lstlisting} |
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
303 |
x[0] = start |
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
304 |
x[num - 1] = end |
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
305 |
\end{lstlisting} |
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
306 |
\vspace*{.35in} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
307 |
\begin{block}{\typ{plot(x, y)}} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
308 |
plots \typ{x} and \typ{y} using default line style and color |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
309 |
\end{block} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
310 |
%\inctime{10} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
311 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
312 |
|
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
313 |
\subsection{Decoration} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
314 |
\begin{frame}[fragile] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
315 |
\frametitle{Adding Labels} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
316 |
\begin{columns} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
317 |
\column{0.25\textwidth} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
318 |
\hspace*{-0.45in} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
319 |
\includegraphics[height=2in, interpolate=true]{data/label} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
320 |
\hspace*{0.5in} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
321 |
\column{0.55\textwidth} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
322 |
\begin{block}{} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
323 |
\small |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
324 |
\begin{lstlisting} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
325 |
In []: xlabel('x') |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
326 |
|
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
327 |
In []: ylabel('sin(x)') |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
328 |
\end{lstlisting} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
329 |
\small |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
330 |
% \end{lstlisting} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
331 |
%\typ{xlabel(s)} sets the label of the \typ{x}-axis to \typ{s} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
332 |
|
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
333 |
% \begin{lstlisting} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
334 |
\end{block} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
335 |
%\typ{ylabel(s)} sets the label of the \typ{y}-axis to \typ{s} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
336 |
\end{columns} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
337 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
338 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
339 |
\begin{frame}[fragile] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
340 |
\frametitle{Another example} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
341 |
\begin{lstlisting} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
342 |
In []: clf() |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
343 |
\end{lstlisting} |
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
344 |
\emphbar{Clears the plot area.} |
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
345 |
\begin{lstlisting} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
346 |
In []: y = linspace(0, 2*pi, 50) |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
347 |
In []: plot(y, sin(2*y)) |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
348 |
In []: xlabel('y') |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
349 |
In []: ylabel('sin(2y)') |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
350 |
\end{lstlisting} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
351 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
352 |
|
407
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
353 |
\begin{frame}[fragile] |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
354 |
\frametitle{IPython tips \ldots} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
355 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
356 |
\begin{itemize} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
357 |
\item Use \typ{TAB} to complete command |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
358 |
\end{itemize} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
359 |
\vspace*{0.5in} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
360 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
361 |
{\Large \structure{History}} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
362 |
\begin{itemize} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
363 |
\item Accesses history (also from past sessions) |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
364 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
365 |
\item Up and down arrows (\typ{Ctrl-p}/\typ{Ctrl-n}) |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
366 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
367 |
\item Search: \typ{Ctrl-r} and start typing |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
368 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
369 |
\item \typ{Ctrl-a}: go to start of line |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
370 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
371 |
\item \typ{Ctrl-e}: end of line |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
372 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
373 |
\item \typ{Ctrl-k}: kill to end of line |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
374 |
\end{itemize} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
375 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
376 |
\end{frame} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
377 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
378 |
|
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
379 |
\subsection{More decoration} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
380 |
\begin{frame}[fragile] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
381 |
\frametitle{Title and Legends} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
382 |
\vspace*{-0.15in} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
383 |
% \begin{block}{} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
384 |
% \small |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
385 |
\begin{lstlisting} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
386 |
In []: title('Sinusoids') |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
387 |
In []: legend(['sin(2y)']) |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
388 |
\end{lstlisting} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
389 |
% \small |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
390 |
% \end{block} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
391 |
\vspace*{-0.1in} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
392 |
\begin{center} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
393 |
\includegraphics[height=2in, interpolate=true]{data/legend} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
394 |
\end{center} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
395 |
\end{frame} |
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
396 |
|
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
397 |
\begin{frame}[fragile] |
180
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
398 |
\frametitle{Legend Placement} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
399 |
\begin{block}{} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
400 |
\small |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
401 |
\begin{lstlisting} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
402 |
In []: legend(['sin(2y)'], loc = 'center') |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
403 |
\end{lstlisting} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
404 |
\end{block} |
180
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
405 |
|
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
406 |
\begin{columns} |
e442b9e23972
Made English and low level id changes to session1.tex
rivermaker@RivermakerMBP.local
parents:
171
diff
changeset
|
407 |
\column{0.6\textwidth} |
171
29c0c504750c
Added some changes suggested during the review.
Shantanu <shantanu@fossee.in>
parents:
147
diff
changeset
|
408 |
\includegraphics[height=2in, interpolate=true]{data/position} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
409 |
\column{0.45\textwidth} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
410 |
\vspace{-0.2in} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
411 |
\begin{lstlisting} |
308
d93be08d69f8
cheat sheet 1 Interactive Plotting.
Shantanu <shantanu@fossee.in>
parents:
307
diff
changeset
|
412 |
'best' |
d93be08d69f8
cheat sheet 1 Interactive Plotting.
Shantanu <shantanu@fossee.in>
parents:
307
diff
changeset
|
413 |
'right' |
d93be08d69f8
cheat sheet 1 Interactive Plotting.
Shantanu <shantanu@fossee.in>
parents:
307
diff
changeset
|
414 |
'center' |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
415 |
\end{lstlisting} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
416 |
\end{columns} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
417 |
\end{frame} |
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
418 |
|
307
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
419 |
%% \begin{frame}[fragile] |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
420 |
%% \frametitle{For arbitrary location} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
421 |
%% \vspace*{-0.1in} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
422 |
%% \begin{lstlisting} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
423 |
%% In []: legend(['sin(2y)'], loc=(.8,.1)) |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
424 |
%% \end{lstlisting} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
425 |
%% \emphbar{Specify south-east corner position} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
426 |
%% %\vspace*{-0.2in} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
427 |
%% \begin{center} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
428 |
%% \includegraphics[height=2in, interpolate=true]{data/loc} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
429 |
%% \end{center} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
430 |
%% %\inctime{10} |
be62ebb11407
Added changes for cheat sheet 1.
Shantanu <shantanu@fossee.in>
parents:
303
diff
changeset
|
431 |
%% \end{frame} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
432 |
|
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
433 |
\begin{frame}[fragile] |
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
434 |
\frametitle{Saving \& Closing} |
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
435 |
\begin{lstlisting} |
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
436 |
In []: savefig('sin.png') |
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
437 |
|
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
438 |
In []: close() |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
439 |
\end{lstlisting} |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
440 |
Supported formats to store images: |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
441 |
\begin{itemize} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
442 |
\item png |
381
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
443 |
\item eps - Easy to embed in LaTeX files |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
444 |
\item emf |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
445 |
\item pdf |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
446 |
\item ps |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
447 |
\item raw |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
448 |
\item rgba |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
449 |
\item svg |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
450 |
\end{itemize} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
451 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
452 |
|
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
453 |
\section{Multiple plots} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
454 |
\begin{frame}[fragile] |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
455 |
\frametitle{Overlaid Plots} |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
456 |
\begin{lstlisting} |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
457 |
In []: clf() |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
458 |
In []: plot(y, sin(y)) |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
459 |
In []: plot(y, cos(y)) |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
460 |
In []: xlabel('y') |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
461 |
In []: ylabel('f(y)') |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
462 |
In []: legend(['sin(y)', 'cos(y)']) |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
463 |
\end{lstlisting} |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
464 |
\emphbar{By default plots would be overlaid!} |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
465 |
\end{frame} |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
466 |
|
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
467 |
\begin{frame}[fragile] |
182 | 468 |
\frametitle{Plotting separate figures} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
469 |
\begin{lstlisting} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
470 |
In []: clf() |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
471 |
In []: figure(1) |
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
472 |
In []: plot(y, sin(y)) |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
473 |
In []: figure(2) |
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
474 |
In []: plot(y, cos(y)) |
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
475 |
In []: savefig('cosine.png') |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
476 |
In []: figure(1) |
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
477 |
In []: title('sin(y)') |
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
478 |
In []: savefig('sine.png') |
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
479 |
In []: close() |
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
480 |
In []: close() |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
481 |
\end{lstlisting} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
482 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
483 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
484 |
\begin{frame}[fragile] |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
485 |
\frametitle{Showing it better} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
486 |
\vspace{-0.15in} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
487 |
\begin{lstlisting} |
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
488 |
In []: plot(y, cos(y), 'r') |
129
d3aae4b05e99
Minor edits to day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
113
diff
changeset
|
489 |
|
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
490 |
In []: clf() |
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
491 |
In []: plot(y, sin(y), 'g', linewidth=2) |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
492 |
\end{lstlisting} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
493 |
\vspace*{-0.2in} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
494 |
\begin{center} |
143
5d0444e9788a
Minor edits to Day1 Session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
141
diff
changeset
|
495 |
\includegraphics[height=2.2in, interpolate=true]{data/green} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
496 |
\end{center} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
497 |
%\inctime{10} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
498 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
499 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
500 |
\begin{frame}[fragile] |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
501 |
\frametitle{Annotating} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
502 |
\vspace*{-0.15in} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
503 |
\begin{lstlisting} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
504 |
In []: annotate('local max', xy=(1.5, 1)) |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
505 |
\end{lstlisting} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
506 |
\vspace*{-0.2in} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
507 |
\begin{center} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
508 |
\includegraphics[height=2in, interpolate=true]{data/annotate} |
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
509 |
\end{center} |
110
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
510 |
\end{frame} |
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
511 |
|
220ac08e67b5
Added Legend placement and Annotating.
Puneeth Chaganti <punchagan@fossee.in>
parents:
107
diff
changeset
|
512 |
\begin{frame}[fragile] |
381
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
513 |
\frametitle{Axes lengths} |
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
514 |
\emphbar{Getting axes lengths} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
515 |
\begin{lstlisting} |
381
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
516 |
In []: xmin, xmax = xlim() |
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
517 |
In []: ymin, ymax = ylim() |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
518 |
\end{lstlisting} |
381
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
519 |
\emphbar{Set the axes limits} |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
520 |
\begin{lstlisting} |
381
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
521 |
In []: xlim(xmin, 2*pi ) |
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
522 |
In []: ylim(ymin-0.2, ymax+0.2) |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
523 |
\end{lstlisting} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
524 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
525 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
526 |
\begin{frame}[fragile] |
387
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
527 |
\frametitle{Axes lengths} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
528 |
\begin{center} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
529 |
\includegraphics[height=3in, interpolate=true]{data/limits} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
530 |
\end{center} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
531 |
\end{frame} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
532 |
|
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
533 |
\begin{frame}[fragile] |
407
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
534 |
\frametitle{IPython tips \ldots} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
535 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
536 |
\begin{itemize} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
537 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
538 |
\item Try: |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
539 |
\begin{lstlisting} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
540 |
In []: plot? |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
541 |
\end{lstlisting} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
542 |
to get more information on \typ{plot} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
543 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
544 |
\vspace*{0.5in} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
545 |
\item Try: |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
546 |
\begin{lstlisting} |
413
984d8a3394cc
Minor edits. Reorder dependency files so easier to eyeball with ls output. Fix typo for showing source in ipython.
Christopher Burns <chris.d.burns@gmail.com>
parents:
407
diff
changeset
|
547 |
In []: plot?? |
407
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
548 |
\end{lstlisting} |
413
984d8a3394cc
Minor edits. Reorder dependency files so easier to eyeball with ls output. Fix typo for showing source in ipython.
Christopher Burns <chris.d.burns@gmail.com>
parents:
407
diff
changeset
|
549 |
to see the source code for \typ{plot} |
407
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
550 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
551 |
\end{itemize} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
552 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
553 |
\end{frame} |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
554 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
555 |
|
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
556 |
\begin{frame}[fragile] |
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
557 |
\frametitle{Review Problem} |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
558 |
\begin{enumerate} |
171
29c0c504750c
Added some changes suggested during the review.
Shantanu <shantanu@fossee.in>
parents:
147
diff
changeset
|
559 |
\item Plot x, -x, sin(x), xsin(x) in range $-5\pi$ to $5\pi$ |
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
560 |
\item Add a legend |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
561 |
\item Annotate the origin |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
562 |
\item Set axes limits to the range of x |
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
563 |
\end{enumerate} |
337 | 564 |
\vspace*{-0.1in} |
565 |
\begin{center} |
|
566 |
\includegraphics[height=2.1in, interpolate=true]{data/four_plot} |
|
567 |
\end{center} |
|
568 |
\end{frame} |
|
569 |
||
570 |
\begin{frame}[fragile] |
|
571 |
\frametitle{Review Problem \ldots} |
|
572 |
\alert{Plotting \ldots} |
|
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
573 |
\begin{lstlisting} |
414
68ef3dced7a0
Add whitespace to assignment.
Christopher Burns <chris.d.burns@gmail.com>
parents:
413
diff
changeset
|
574 |
In []: x = linspace(-5*pi, 5*pi, 500) |
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
575 |
In []: plot(x, x, 'b') |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
576 |
In []: plot(x, -x, 'b') |
337 | 577 |
In []: plot(x, sin(x), 'g', linewidth=2) |
578 |
In []: plot(x, x*sin(x), 'r', |
|
579 |
linewidth=3) |
|
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
580 |
\end{lstlisting} |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
581 |
$\vdots$ |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
582 |
\end{frame} |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
583 |
|
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
584 |
\begin{frame}[fragile] |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
585 |
\frametitle{Review Problem \ldots} |
337 | 586 |
\alert{Legend \& Annotation\ldots} |
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
587 |
\begin{lstlisting} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
588 |
In []: legend(['x', '-x', 'sin(x)', |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
589 |
'xsin(x)']) |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
590 |
In []: annotate('origin', xy = (0, 0)) |
337 | 591 |
\end{lstlisting} |
592 |
\alert{Setting Axes limits\ldots} |
|
593 |
\begin{lstlisting} |
|
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
594 |
In []: xlim(-5*pi, 5*pi) |
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
595 |
In []: ylim(-5*pi, 5*pi) |
147
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
596 |
\end{lstlisting} |
6874a667dc4e
Added review at end of session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
143
diff
changeset
|
597 |
\end{frame} |
264
c3a1de5b8216
Updated day1 session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
247
diff
changeset
|
598 |
|
280
9bed85f05eb8
Added save command in session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
279
diff
changeset
|
599 |
\begin{frame}[fragile] |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
600 |
\frametitle{Command History} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
601 |
Use the \typ{\%hist} \alert{magic} command of IPython |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
602 |
\typ{In []: \%hist}\\ |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
603 |
This displays all the commands typed in so far aka Command History. |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
604 |
\begin{block}{Careful about errors!} |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
605 |
\kwrd{\%hist} will contain the errors as well.\\ |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
606 |
\end{block} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
607 |
\begin{block}{Magic Commands?} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
608 |
Magic commands are commands provided by IPython to make our life easier. |
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
609 |
\end{block} |
280
9bed85f05eb8
Added save command in session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
279
diff
changeset
|
610 |
\end{frame} |
9bed85f05eb8
Added save command in session1.
Puneeth Chaganti <punchagan@fossee.in>
parents:
279
diff
changeset
|
611 |
|
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
612 |
\begin{frame}[fragile] |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
613 |
\frametitle{Saving commands into script} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
614 |
Use the \typ{\%save} \alert{magic} command of IPython |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
615 |
\begin{block}{} |
381
b797cd67982b
Updated changes from GRDCS.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
379
diff
changeset
|
616 |
\typ{\%save script_name line_numbers} |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
617 |
\end{block} |
415
331aaca9d779
Line numbers for history can be separated by spaces, not commas.
Christopher Burns <chris.d.burns@gmail.com>
parents:
414
diff
changeset
|
618 |
Line numbers can be specified individually separated by spaces or as a range separated by a dash.\\ |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
619 |
\begin{block}{} |
397
28915381ac32
Changes from BHU workshop . changed variable names in list intro . pendulum.pychanged to pendulum_plot.py . Also an extra space added on slide 33 session1 day1
amit@shrike.aero.iitb.ac.in
parents:
391
diff
changeset
|
620 |
\typ{\%save four_plot.py} \alert{\typ{ 16 18-27}} \\ |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
621 |
\end{block} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
622 |
This saves from the history the commands entered on line numbers \alert{16, 18, 19, 20, \ldots 27} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
623 |
\end{frame} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
624 |
|
171
29c0c504750c
Added some changes suggested during the review.
Shantanu <shantanu@fossee.in>
parents:
147
diff
changeset
|
625 |
\begin{frame} |
293
f7d7b5565232
Added another ODE example to session6.
Puneeth Chaganti <punchagan@fossee.in>
parents:
290
diff
changeset
|
626 |
\frametitle{Python Scripts\ldots} |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
627 |
Now, four\_plot.py is called a Python Script. |
293
f7d7b5565232
Added another ODE example to session6.
Puneeth Chaganti <punchagan@fossee.in>
parents:
290
diff
changeset
|
628 |
\begin{itemize} |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
629 |
\item run the script in IPython using \typ{\%run four_plot.py}\\ |
293
f7d7b5565232
Added another ODE example to session6.
Puneeth Chaganti <punchagan@fossee.in>
parents:
290
diff
changeset
|
630 |
\end{itemize} |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
631 |
\pause |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
632 |
\alert{\typ{NameError: name 'linspace' is not defined}} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
633 |
\begin{block}{} |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
634 |
To avoid this, run using \alert{\typ{\%run -i four_plot.py}}\\ |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
635 |
\end{block} |
293
f7d7b5565232
Added another ODE example to session6.
Puneeth Chaganti <punchagan@fossee.in>
parents:
290
diff
changeset
|
636 |
\end{frame} |
f7d7b5565232
Added another ODE example to session6.
Puneeth Chaganti <punchagan@fossee.in>
parents:
290
diff
changeset
|
637 |
|
303
26f5e864a135
Updated session 1 of day 1.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
293
diff
changeset
|
638 |
\begin{frame}[fragile] |
387
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
639 |
\frametitle{Result graph} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
640 |
\begin{center} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
641 |
\includegraphics[height=3in, interpolate=true]{data/four_plot} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
642 |
\end{center} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
643 |
\end{frame} |
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
644 |
|
5e485a5d8ac4
Minor corrections post SVCE.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
385
diff
changeset
|
645 |
\begin{frame}[fragile] |
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
646 |
\frametitle{What did we learn?} |
171
29c0c504750c
Added some changes suggested during the review.
Shantanu <shantanu@fossee.in>
parents:
147
diff
changeset
|
647 |
\begin{itemize} |
373
f04eca8b2f3d
Commits from NIT DGP and IITK
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
366
diff
changeset
|
648 |
\item Starting up IPython |
407
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
649 |
\item Creating simple plots |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
650 |
\item Adding labels and legends |
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
651 |
\item Annotating plots |
246
d054581ef4b1
Made changes to Goals and added outline slides.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
225
diff
changeset
|
652 |
\item Changing the looks: size, linewidth |
407
b5d3b5ddac7b
Added changes to session 1. Added some IPython tips.
Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
parents:
405
diff
changeset
|
653 |
\item Accessing history, documentation |
379
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
654 |
\item \kwrd{\%hist} - History of commands |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
655 |
\item \kwrd{\%save} - Saving commands |
682b6f66fe11
Updated for day1 of GRD workshop.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
378
diff
changeset
|
656 |
\item Running a script using \kwrd{\%run -i} |
171
29c0c504750c
Added some changes suggested during the review.
Shantanu <shantanu@fossee.in>
parents:
147
diff
changeset
|
657 |
\end{itemize} |
107
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
658 |
\end{frame} |
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
659 |
|
647239f95c4a
Added rough draft of slides and cheatsheet for Interactive Plotting.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
660 |
\end{document} |
140
fe6a38572a65
Added changes suggested by PR for session 1 day 1.
Shantanu <shantanu@fossee.in>
parents:
138
diff
changeset
|
661 |
|
343
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
662 |
%% Questions for Quiz %% |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
663 |
%% ------------------ %% |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
664 |
|
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
665 |
\begin{frame}[fragile] |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
666 |
\frametitle{\incqno } |
352
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
667 |
Draw (roughly) the plot obtained by the following: |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
668 |
\begin{lstlisting} |
358
162e3e453920
Added files to be circulated during workshops.
Puneeth Chaganti <punchagan@fossee.in>
parents:
354
diff
changeset
|
669 |
In []: x = linspace(0, pi, 3) |
352
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
670 |
In []: plot(x, sin(x)) |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
671 |
\end{lstlisting} |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
672 |
\end{frame} |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
673 |
|
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
674 |
\begin{frame}[fragile] |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
675 |
\frametitle{\incqno } |
343
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
676 |
Describe the plot produced by the following: |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
677 |
\begin{lstlisting} |
352
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
678 |
In []: x = linspace(0, 2*pi, 50) |
343
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
679 |
In []: plot(x, cos(x), 'go') |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
680 |
\end{lstlisting} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
681 |
\end{frame} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
682 |
|
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
683 |
\begin{frame} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
684 |
\frametitle{\incqno } |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
685 |
How will you plot the previous graph with line width set to 3? How will |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
686 |
you set the $x$ and $y$ labels of the plot? |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
687 |
\end{frame} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
688 |
|
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
689 |
\begin{frame} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
690 |
\frametitle{\incqno } |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
691 |
How will you set the x and y axis limits so that the region of interest |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
692 |
is in the rectangle $(0, -1.5)$ (left bottom coordinate) and $(2\pi, |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
693 |
1.5)$ (right top coordinate)? |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
694 |
\end{frame} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
695 |
|
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
696 |
\begin{frame} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
697 |
\frametitle{\incqno } |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
698 |
What ipython magic command do you use to obtain the lines of code you have already typed in the interpreter? What command do you use to save them? |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
699 |
\end{frame} |
adb85e126341
Moved all day1 quiz questions to end of day1-sessions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
342
diff
changeset
|
700 |
|
354
5dc6c3673f9d
Changes made during REC Chennai workshop.
Puneeth Chaganti <punchagan@fossee.in>
parents:
352
diff
changeset
|
701 |
\begin{frame}[fragile] |
352
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
702 |
\frametitle{\incqno } |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
703 |
The following code snippet has an error/bug: |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
704 |
\begin{lstlisting} |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
705 |
In []: y = linspace(0, 2*pi, 50) |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
706 |
In []: plot(y, sin(y)) |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
707 |
In []: clf() |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
708 |
In []: plot(y, cos(y)) |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
709 |
In []: legend(['sin(y)', 'cos(y)']) |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
710 |
\end{lstlisting} |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
711 |
What is the error? How do you fix it? |
b44d7bcc6609
Added a few quiz questions; Minor edits.
Puneeth Chaganti <punchagan@fossee.in>
parents:
343
diff
changeset
|
712 |
\end{frame} |