day2/session3.tex
author Puneeth Chaganti <punchagan@fossee.in>
Mon, 12 Oct 2009 11:56:07 +0530
changeset 97 555237dbce44
parent 96 a749db24e73b
permissions -rw-r--r--
Changing authors, etc. Changes at BPRIM.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46
63704b5650f1 Changed the copyright and Institute for all the sessions.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
     1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63704b5650f1 Changed the copyright and Institute for all the sessions.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
     2
% Tutorial slides on Python.
63704b5650f1 Changed the copyright and Institute for all the sessions.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
     3
%
63704b5650f1 Changed the copyright and Institute for all the sessions.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
     4
% Author: Prabhu Ramachandran <prabhu at aero.iitb.ac.in>
63704b5650f1 Changed the copyright and Institute for all the sessions.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
     5
% Copyright (c) 2005-2009, Prabhu Ramachandran
63704b5650f1 Changed the copyright and Institute for all the sessions.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
     6
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     7
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     8
\documentclass[compress,14pt]{beamer}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     9
% \documentclass[handout]{beamer}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    10
% \usepackage{pgfpages}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    11
% \pgfpagesuselayout{4 on 1}[a4paper,border, shrink=5mm,landscape]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    12
\usepackage{tikz}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    13
\newcommand{\hyperlinkmovie}{}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    14
%\usepackage{movie15}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    15
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    16
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    17
% Note that in presentation mode 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    18
% \paperwidth  364.19536pt
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    19
% \paperheight 273.14662pt
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    20
% h/w = 0.888
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    21
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    23
\mode<presentation>
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    24
{
56
7a8cb7b07ebb Added testing examples in session-3.
Shantanu <shantanu@fossee.in>
parents: 46
diff changeset
    25
  \usetheme{Warsaw}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    26
  %\usetheme{Boadilla}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    27
  %\usetheme{default}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    28
  \useoutertheme{split}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    29
  \setbeamercovered{transparent}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    30
}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    31
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    32
% To remove navigation symbols
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    33
\setbeamertemplate{navigation symbols}{}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    34
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    35
\usepackage{amsmath}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    36
\usepackage[english]{babel}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    37
\usepackage[latin1]{inputenc}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    38
\usepackage{times}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    39
\usepackage[T1]{fontenc}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    40
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    41
% Taken from Fernando's slides.
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    42
\usepackage{ae,aecompl}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    43
\usepackage{mathpazo,courier,euler}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    44
\usepackage[scaled=.95]{helvet}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    45
\usepackage{pgf}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    46
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    47
\definecolor{darkgreen}{rgb}{0,0.5,0}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    48
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    49
\usepackage{listings}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    50
\lstset{language=Python,
23
14c817585247 Added Exercise for testing in Session3.
Shantanu <shantanu@fossee.in>
parents: 22
diff changeset
    51
    basicstyle=\ttfamily\bfseries,
14c817585247 Added Exercise for testing in Session3.
Shantanu <shantanu@fossee.in>
parents: 22
diff changeset
    52
    commentstyle=\color{red}\itshape,
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    53
  stringstyle=\color{darkgreen},
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    54
  showstringspaces=false,
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    55
  keywordstyle=\color{blue}\bfseries}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    56
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    57
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    58
% My Macros
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    59
\setbeamercolor{postit}{bg=yellow,fg=black}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    60
\setbeamercolor{emphbar}{bg=blue!20, fg=black}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    61
\newcommand{\emphbar}[1]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    62
{\begin{beamercolorbox}[rounded=true]{emphbar} 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    63
      {#1}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    64
 \end{beamercolorbox}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    65
}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    66
%{\centerline{\fcolorbox{gray!50} {blue!10}{
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    67
%\begin{minipage}{0.9\linewidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    68
%    {#1} 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    69
%\end{minipage}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    70
%    }}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    71
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    72
\newcommand{\myemph}[1]{\structure{\emph{#1}}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    73
\newcommand{\PythonCode}[1]{\lstinline{#1}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    74
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    75
\newcommand{\tvtk}{\texttt{tvtk}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    76
\newcommand{\mlab}{\texttt{mlab}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    77
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    78
\newcounter{time}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    79
\setcounter{time}{0}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    80
\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\vspace*{0.1in}\tiny \thetime\ m}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    81
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    82
\newcommand\BackgroundPicture[1]{%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    83
  \setbeamertemplate{background}{%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    84
      \parbox[c][\paperheight]{\paperwidth}{%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    85
      \vfill \hfill
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    86
 \hfill \vfill
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    87
}}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    88
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    89
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    90
% Configuring the theme
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    91
%\setbeamercolor{normal text}{fg=white}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    92
%\setbeamercolor{background canvas}{bg=black}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    93
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    94
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    95
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    96
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    97
% Title page
61
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
    98
\title[]{3D data Visualization}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    99
97
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   100
\author[FOSSEE Team] {FOSSEE}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   101
46
63704b5650f1 Changed the copyright and Institute for all the sessions.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
   102
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
97
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   103
\date[]{11, October 2009}
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   104
%\date[] % (optional)
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   105
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   106
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   107
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   108
%\pgfdeclareimage[height=0.75cm]{iitblogo}{iitblogo}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   109
%\logo{\pgfuseimage{iitblogo}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   110
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   111
\AtBeginSection[]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   112
{
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   113
  \begin{frame}<beamer>
97
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   114
    \frametitle{Outline}      
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   115
    \tableofcontents[currentsection,currentsubsection]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   116
  \end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   117
}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   118
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   119
%% Delete this, if you do not want the table of contents to pop up at
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   120
%% the beginning of each subsection:
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   121
\AtBeginSubsection[]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   122
{
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   123
  \begin{frame}<beamer>
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   124
    \frametitle{Outline}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   125
    \tableofcontents[currentsection,currentsubsection]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   126
  \end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   127
}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   128
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   129
\AtBeginSection[]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   130
{
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   131
  \begin{frame}<beamer>
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   132
    \frametitle{Outline}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   133
    \tableofcontents[currentsection,currentsubsection]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   134
  \end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   135
}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   136
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   137
% DOCUMENT STARTS
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   138
\begin{document}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   139
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   140
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   141
  \maketitle
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   142
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   143
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   144
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   145
  \frametitle{Outline}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   146
  \tableofcontents
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   147
  % You might wish to add the option [pausesections]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   148
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   149
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   150
\section{3D Data Visualization}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   151
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   152
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   153
    \frametitle{What is visualization?}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   154
    \Large
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   155
    \begin{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   156
    Visual representation of data
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   157
    \end{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   158
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   159
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   160
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   161
    \frametitle{3D visualization}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   162
    \Large
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   163
    \begin{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   164
        Harder but important
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   165
    \end{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   166
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   167
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   168
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   169
    \frametitle{Is this Graphics?}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   170
    \Large
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   171
    \begin{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   172
        Visualization is about data!
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   173
    \end{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   174
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   175
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   176
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   177
    \frametitle{Examples: trajectory in space}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   178
    \Large
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   179
    \begin{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   180
        \pgfimage[width=2.5in]{MEDIA/m2/mlab/plot3d_ex}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   181
    \end{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   182
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   183
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   184
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   185
    \frametitle{Examples: Fire in a room}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   186
    \Large
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   187
    \begin{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   188
        Demo of data
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   189
    \end{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   190
\inctime{10}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   191
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   192
72
1c1d6aaa2be3 Added first cut of Day2 handout; Minor edits to sessions 2 and 3.
Puneeth Chaganti <punchagan@fossee.in>
parents: 61
diff changeset
   193
\section{Tools at your disposal}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   194
76
b24c2560f626 Added links.tex, compilation of various links.
Shantanu <shantanu@fossee.in>
parents: 72
diff changeset
   195
\subsection{Mayavi2}
61
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   196
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   197
\begin{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   198
  \frametitle{Introduction to Mayavi}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   199
  \begin{itemize}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   200
  \item Most scientists not interested in details of visualization
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   201
  \item Visualization of data files with a nice UI
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   202
  \item Interactive visualization of data (think Matlab)
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   203
  \item Embedding visualizations in applications
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   204
  \item Customization
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   205
  \end{itemize}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   206
  \pause
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   207
  \begin{block}{The Goal}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   208
      Provide a \alert{flexible} library/app for every one of these needs!
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   209
  \end{block}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   210
\end{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   211
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   212
\begin{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   213
    {Overview of features}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   214
      \vspace*{-0.3in}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   215
  \begin{center}    
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   216
    \hspace*{-0.2in}\pgfimage[width=5in]{MEDIA/m2/m2_app3_3}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   217
  \end{center}    
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   218
\end{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   219
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   220
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   221
\begin{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   222
    \frametitle{Mayavi in applications}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   223
      \vspace*{-0.3in}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   224
  \begin{center}    
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   225
    \hspace*{-0.2in}\pgfimage[width=4.5in]{MEDIA/m2/m2_envisage}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   226
  \end{center}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   227
\end{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   228
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   229
\begin{frame}
96
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   230
    \frametitle{Live in your dialogs}
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   231
      \vspace*{0.1in}
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   232
  \begin{center}    
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   233
    \hspace*{-0.2in}\pgfimage[width=2.5in]{MEDIA/m2/mlab_tui}
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   234
  \end{center}
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   235
\end{frame}
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   236
a749db24e73b Added Dialogs Slide; More edits to Day2 slides.
Puneeth Chaganti <punchagan@fossee.in>
parents: 76
diff changeset
   237
\begin{frame}
61
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   238
    {Exploring the documentation}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   239
    \begin{center}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   240
    \pgfimage[width=4in]{MEDIA/m2/m2_ug_doc}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   241
    \end{center}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   242
\end{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   243
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   244
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   245
\begin{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   246
  \frametitle{Summary}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   247
      \begin{itemize}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   248
          \item \url{http://code.enthought.com/projects/mayavi}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   249
          \item Uses VTK (\url{www.vtk.org})
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   250
          \item BSD license
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   251
          \item Linux, win32 and Mac OS X
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   252
          \item Highly scriptable
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   253
          \item Embed in Traits UIs (wxPython and PyQt4)
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   254
          \item Envisage Plugins
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   255
          \item Debian/Ubuntu/Fedora
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   256
          \item \alert{Pythonic}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   257
      \end{itemize}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   258
    
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   259
      \inctime{10}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   260
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   261
\end{frame}
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   262
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   263
\subsection{mlab}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   264
23
14c817585247 Added Exercise for testing in Session3.
Shantanu <shantanu@fossee.in>
parents: 22
diff changeset
   265
\begin{frame}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   266
    {Overview}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   267
    \Large
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   268
    \begin{itemize}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   269
        \item Simple
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   270
        \item Convenient
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   271
        \item Full-featured
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   272
    \end{itemize}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   273
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   274
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   275
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   276
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   277
    \frametitle{Getting started}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   278
    \myemph{\Large Vanilla:}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   279
    \begin{lstlisting}[language=bash]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   280
        $ ipython -wthread
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   281
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   282
    \myemph{\Large with Pylab:}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   283
    \begin{lstlisting}[language=bash]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   284
        $ ipython -pylab -wthread
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   285
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   286
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   287
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   288
\begin{frame}[fragile]
72
1c1d6aaa2be3 Added first cut of Day2 handout; Minor edits to sessions 2 and 3.
Puneeth Chaganti <punchagan@fossee.in>
parents: 61
diff changeset
   289
    \frametitle{Using mlab}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   290
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   291
    \begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   292
>>> from enthought.mayavi import mlab
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   293
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   294
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   295
    \vspace*{0.5in}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   296
72
1c1d6aaa2be3 Added first cut of Day2 handout; Minor edits to sessions 2 and 3.
Puneeth Chaganti <punchagan@fossee.in>
parents: 61
diff changeset
   297
    \myemph{\Large Try these}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   298
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   299
    \vspace*{0.25in}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   300
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   301
    \begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   302
>>> mlab.test_<TAB>
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   303
>>> mlab.test_contour3d()
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   304
>>> mlab.test_contour3d??
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   305
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   306
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   307
23
14c817585247 Added Exercise for testing in Session3.
Shantanu <shantanu@fossee.in>
parents: 22
diff changeset
   308
\begin{frame}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   309
    {Exploring the view}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   310
    \begin{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   311
        \column{0.6\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   312
    \pgfimage[width=3in]{MEDIA/m2/contour3d}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   313
        \column{0.4\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   314
        \begin{itemize}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   315
            \item Mouse
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   316
            \item Keyboard
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   317
            \item Toolbar
61
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   318
            \item Mayavi icon\pgfimage[width=0.2in]{MEDIA/m2/m2_icon}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   319
        \end{itemize}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   320
    \end{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   321
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   322
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   323
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   324
    \frametitle{\mlab\ plotting functions}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   325
    \begin{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   326
        \column{0.25\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   327
        \myemph{\Large 0D data}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   328
        \column{0.5\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   329
    \pgfimage[width=2in]{MEDIA/m2/mlab/points3d_ex}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   330
    \end{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   331
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   332
    \begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   333
>>> from numpy import *
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   334
>>> t = linspace(0, 2*pi, 50)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   335
>>> u = cos(t)*pi
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   336
>>> x, y, z = sin(u), cos(u), sin(t)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   337
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   338
    \emphbar{\PythonCode{>>> mlab.points3d(x, y, z)}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   339
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   340
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   341
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   342
  \begin{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   343
        \column{0.25\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   344
        \myemph{\Large 1D data}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   345
        \column{0.5\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   346
        \pgfimage[width=2.5in]{MEDIA/m2/mlab/plot3d_ex}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   347
  \end{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   348
  \emphbar{\PythonCode{>>> mlab.plot3d(x, y, z, t)}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   349
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   350
    Plots lines between the points
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   351
    
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   352
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   353
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   354
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   355
    \begin{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   356
        \column{0.25\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   357
        \myemph{\Large 2D data}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   358
        \column{0.5\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   359
        \pgfimage[width=2in]{MEDIA/m2/mlab/surf_ex}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   360
    \end{columns}            
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   361
    \begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   362
>>> x = mgrid[-3:3:100j,-3:3:100j]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   363
>>> z = sin(x*x + y*y)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   364
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   365
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   366
    \emphbar{\PythonCode{>>> mlab.surf(x, y, z)}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   367
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   368
    \alert{Assumes the points are rectilinear}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   369
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   370
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   371
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   372
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   373
    \myemph{\Large 2D data: \texttt{mlab.mesh}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   374
    \vspace*{0.25in}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   375
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   376
    \emphbar{\PythonCode{>>> mlab.mesh(x, y, z)}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   377
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   378
    \alert{Points needn't be regular}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   379
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   380
    \vspace*{0.25in}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   381
\begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   382
>>> phi, theta = numpy.mgrid[0:pi:20j, 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   383
...                         0:2*pi:20j]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   384
>>> x = sin(phi)*cos(theta)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   385
>>> y = sin(phi)*sin(theta)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   386
>>> z = cos(phi)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   387
>>> mlab.mesh(x, y, z, 
61
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   388
...           representation=
fc495fd7e84e Added tda.tex for day2 and compiled handout for day1.
Shantanu <shantanu@fossee.in>
parents: 57
diff changeset
   389
...           'wireframe')
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   390
\end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   391
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   392
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   393
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   394
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   395
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   396
  \begin{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   397
        \column{0.25\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   398
        \myemph{\Large 3D data}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   399
        \column{0.5\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   400
        \pgfimage[width=1.5in]{MEDIA/m2/mlab/contour3d}\\        
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   401
    \end{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   402
\begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   403
>>> x, y, z = ogrid[-5:5:64j, 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   404
...                -5:5:64j, 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   405
...                -5:5:64j]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   406
>>> mlab.contour3d(x*x*0.5 + y*y + 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   407
                   z*z*2)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   408
\end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   409
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   410
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   411
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   412
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   413
    \myemph{\Large 3D vector data: \PythonCode{mlab.quiver3d}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   414
    \vspace*{0.25in}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   415
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   416
    \pgfimage[width=2in]{MEDIA/m2/mlab/quiver3d_ex}\\
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   417
    
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   418
\begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   419
>>> mlab.test_quiver3d()
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   420
\end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   421
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   422
\emphbar{\PythonCode{obj = mlab.quiver3d(x, y, z, u, v, w)}}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   423
\inctime{20}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   424
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   425
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   426
\begin{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   427
    {Getting hands dirty!}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   428
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   429
        \begin{block}{Motivational problem}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   430
        Atmospheric data of temperature over the surface of the earth.
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   431
        Let temperature ($T$) vary linearly with height ($z$):
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   432
        \begin{center}            
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   433
        $T = 288.15 - 6.5z$
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   434
        \end{center}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   435
        \end{block}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   436
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   437
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   438
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   439
    \frametitle{Simple solution}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   440
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   441
    \begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   442
lat = linspace(-89, 89, 37)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   443
lon = linspace(0, 360, 37)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   444
z = linspace(0, 100, 11)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   445
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   446
\pause
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   447
    \begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   448
x, y, z = mgrid[0:360:37j,-89:89:37j,
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   449
                0:100:11j]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   450
t = 288.15 - 6.5*z
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   451
mlab.contour3d(x, y, z, t)
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   452
mlab.outline()
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   453
mlab.colorbar()
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   454
    \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   455
\end{frame}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   456
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   457
\begin{frame}[fragile]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   458
    \frametitle{Exercise: Lorenz equation}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   459
    \begin{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   460
        \column{0.25\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   461
        \begin{eqnarray*}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   462
        \frac{d x}{dt} &=& s (y-x)\\
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   463
        \frac{d y}{d t} &=& rx -y -xz\\
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   464
        \frac{d z}{d t} &=& xy - bz\\
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   465
        \end{eqnarray*}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   466
        \column{0.25\textwidth}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   467
        Let $s=10,$
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   468
        $r=28,$ 
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   469
        $b=8./3.$
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   470
    \end{columns}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   471
    \structure{\Large Region of interest}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   472
  \begin{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   473
x, y, z = mgrid[-50:50:20j,-50:50:20j,
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   474
                -10:60:20j]
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   475
  \end{lstlisting}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   476
\inctime{20}
97
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   477
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   478
\end{frame}
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   479
\begin{frame}[fragile]
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   480
    \frametitle{Solution}
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   481
  \begin{lstlisting}
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   482
def lorenz(x,y,z,s=10.,r=28.,b=8./3.):
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   483
    u = s*(y-x)
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   484
    v = r*x-y-x*z
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   485
    w = x*y-b*z
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   486
    return u,v,w
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   487
x,y,z = mgrid [-50:50:20j,-50:50:20j,
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   488
                    -10:60:20j ]
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   489
u,v,w = lorenz( x , y , z )
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   490
# Your plot here
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   491
#
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   492
mlab.show()
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   493
555237dbce44 Changing authors, etc. Changes at BPRIM.
Puneeth Chaganti <punchagan@fossee.in>
parents: 96
diff changeset
   494
  \end{lstlisting}
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   495
\end{frame}
57
73462010a2fe Changed theme and other changes session-3.
Shantanu <shantanu@fossee.in>
parents: 56
diff changeset
   496
  
22
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   497
\end{document}
492017122355 Added files for Session 3 Day2.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   498