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