summaryrefslogtreecommitdiff
path: root/using-plot-interactively
diff options
context:
space:
mode:
authorPuneeth Chaganti2010-12-01 16:51:35 +0530
committerPuneeth Chaganti2010-12-01 16:51:35 +0530
commitf3a34dfb4e879f3eb7274704f44546aac4add88f (patch)
tree1cb0a8cc5dbd5ee2b374350915ed2addfa0fb447 /using-plot-interactively
parent347866ed0d29db61ee062563b1e1616cfb85588c (diff)
downloadst-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.tar.gz
st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.tar.bz2
st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.zip
Renamed all LOs to match with their names in progress.org.
Diffstat (limited to 'using-plot-interactively')
-rw-r--r--using-plot-interactively/buttons.pngbin5214 -> 0 bytes
-rw-r--r--using-plot-interactively/home.pngbin996 -> 0 bytes
-rw-r--r--using-plot-interactively/move.pngbin606 -> 0 bytes
-rw-r--r--using-plot-interactively/quickref.tex14
-rw-r--r--using-plot-interactively/save.pngbin676 -> 0 bytes
-rw-r--r--using-plot-interactively/script.rst226
-rw-r--r--using-plot-interactively/slides.org76
-rw-r--r--using-plot-interactively/slides.tex99
-rw-r--r--using-plot-interactively/zoom.pngbin947 -> 0 bytes
9 files changed, 0 insertions, 415 deletions
diff --git a/using-plot-interactively/buttons.png b/using-plot-interactively/buttons.png
deleted file mode 100644
index 7b39d24..0000000
--- a/using-plot-interactively/buttons.png
+++ /dev/null
Binary files differ
diff --git a/using-plot-interactively/home.png b/using-plot-interactively/home.png
deleted file mode 100644
index dd21f5b..0000000
--- a/using-plot-interactively/home.png
+++ /dev/null
Binary files differ
diff --git a/using-plot-interactively/move.png b/using-plot-interactively/move.png
deleted file mode 100644
index 538ed1f..0000000
--- a/using-plot-interactively/move.png
+++ /dev/null
Binary files differ
diff --git a/using-plot-interactively/quickref.tex b/using-plot-interactively/quickref.tex
deleted file mode 100644
index 6f0451f..0000000
--- a/using-plot-interactively/quickref.tex
+++ /dev/null
@@ -1,14 +0,0 @@
-Creating a linear array:\\
-{\ex \lstinline| x = linspace(0, 2*pi, 50)|}
-
-Plotting two variables:\\
-{\ex \lstinline| plot(x, sin(x))|}
-
-Saving Plot\\
-{\includegraphics[width=60mm]{save.png}}
-
-Zooming into a part of the plot\\
-{\includegraphics[width=60mm]{zoom.png}}
-
-Move the plot\\
-{\includegraphics[width=60mm]{move.png}}
diff --git a/using-plot-interactively/save.png b/using-plot-interactively/save.png
deleted file mode 100644
index b1a6757..0000000
--- a/using-plot-interactively/save.png
+++ /dev/null
Binary files differ
diff --git a/using-plot-interactively/script.rst b/using-plot-interactively/script.rst
deleted file mode 100644
index cd2ee6a..0000000
--- a/using-plot-interactively/script.rst
+++ /dev/null
@@ -1,226 +0,0 @@
-.. Objectives
-.. ----------
-
-.. By the end of this tutorial you will --
-
-.. 1. Create simple plots of mathematical functions
-.. #. Use the Figure window to study plots better
-
-
-
-.. Prerequisites
-.. -------------
-
-.. Installation of required tools
-.. Ipython
-
-.. Author : Amit Sethi
- Internal Reviewer :
- External Reviewer :
- Checklist OK? : <put date stamp here, if OK> [2010-10-05]
-
-Script
--------
-{{{ Show the Title Slide }}}
-
-Hello and welcome to the tutorial on creating simple plots using
-Python.This tutorial is presented by the Fossee group.
-
-I hope you have IPython running on your computer.
-
-In this tutorial we will look at plot command and also how to study
-the plot using the UI.
-
-{{{ Show Outline Slide }}}
-
-Lets start ipython on your shell, type ::
-
- $ipython -pylab
-
-
-Pylab is a python library which provides plotting functionality.It
-also provides many other important mathematical and scientific
-functions. After running IPython -pylab in your shell if at the top of
-the result of this command, you see something like ::
-
-
- `ERROR: matplotlib could NOT be imported! Starting normal
- IPython.`
-
-
-{{{ Slide with Error written on it }}}
-
-
-Then you have to install matplotlib and run this command again.
-
-Now type in your ipython shell ::
-
- linpace?
-
-
-
-as the documentation says, it returns `num` evenly spaced samples,
-calculated over the interval start and stop. To illustrate this, lets
-do it form 1 to 100 and try 100 points. ::
-
- linspace(1,100,100)
-
-As you can see a sequence of numbers from 1 to 100 appears.
-
-Now lets try 200 points between 0 and 1 you do this by typing ::
-
-
- linspace(0,1,200)
-
-0 for start , 1 for stop and 200 for no of points. In linspace
-the start and stop points can be integers, decimals , or
-constants. Let's try and get 100 points between -pi to pi. Type ::
-
- p = linspace(-pi,pi,100)
-
-
-'pi' here is constant defined by pylab. Save this to the variable, p
-.
-
-If you now ::
-
- len(p)
-
-You will get the no. of points. len function gives the no of elements
-of a sequence.
-
-
-Let's try and plot a cosine curve between -pi and pi using these
-points. Simply type::
-
- plot(p,cos(points))
-
-
-Here cos(points) gets the cosine value at every corresponding point to
-p.
-
-
-We can also save cos(points) to variable cosine and plot it using
-plot.::
-
- cosine=cos(points)
-
- plot(p,cosine)
-
-
-
-Now do ::
-
- clf()
-
-this will clear the plot.
-
-This is done because any other plot we try to make shall come on the
-same drawing area. As we do not wish to clutter the area with
-overlaid plots , we just clear it with clf(). Now lets try a sine
-plot. ::
-
-
- plot(p,sin(p))
-
-
-
-
-The Window on which the plot appears can be used to study it better.
-
-{{{ Show the slide with all the buttons on it }}}
-
-First of all moving the mouse around gives us the point where mouse
-points at.
-
-Also we have some buttons the right most among them is
-for saving the file.
-
-Just click on it specifying the name of the file. We will save the plot
-by the name sin_curve in pdf format.
-
-
-
-{{{ Show how to save the file }}}
-
-As you can see I can specify format of file from the dropdown.
-
-Formats like png ,eps ,pdf, ps are available.
-
-Left to the save button is the slider button to specify the margins.
-
-{{{ Show how to zoom. Press zoom button and specify region to zoom }}}
-
-Left to this is zoom button to zoom into the plot. Just specify the
-region to zoom into.
-
-{{{ Press Move button and move the axes. }}}
-
-The button left to it can be used to move the axes of the plot.
-
-{{{ Press Back and Forward Button }}}
-
-The next two buttons with a left and right arrow icons change the state of the
-plot and take it to the previous state it was in. It more or less acts like a
-back and forward button in the browser.
-
-{{{ Press home button }}}
-
-The last one is 'home' referring to the initial plot.
-
-
-
-
-Following is an exercise that you must do.
-
-%% %% Plot (sin(x)*sin(x))/x .
- 1. Save the plot by the sinsquarebyx.pdf in pdf format.
- 2. Zoom and find the maxima.
-
- 3. Bring it back to initial position.
-
-
-Please, pause the video here. Do the exercise and then continue.
-
-
-
-
-
-
-
-
-
-{{{ Summary Slide }}}
-
-In this tutorial we have looked at
-
-1. Starting Ipython with pylab
-
-2. Using linspace function to create `num` equaly spaced points in a region.
-
-3. Finding length of sequnces using len.
-
-4. Plotting mathematical functions using plot.
-
-4. Clearing drawing area using clf
-
-5. Using the UI of plot for studying it better . Using functionalities like save , zoom and moving the plots on x and y axis
-
-
- {{{ Show the "sponsored by FOSSEE" slide }}}
-
-
-
-This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
-
-
-
- Hope you have enjoyed and found it useful.
-
- Thankyou
-
-
-
-Author : Amit Sethi
-Internal Reviewer :
-Internal Reviewer 2 :
diff --git a/using-plot-interactively/slides.org b/using-plot-interactively/slides.org
deleted file mode 100644
index ca0ff12..0000000
--- a/using-plot-interactively/slides.org
+++ /dev/null
@@ -1,76 +0,0 @@
-#+LaTeX_CLASS: beamer
-#+LaTeX_CLASS_OPTIONS: [presentation]
-#+BEAMER_FRAME_LEVEL: 1
-
-#+BEAMER_HEADER_EXTRA: \usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent}
-#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
-#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 :ETC
-
-#+LaTeX_CLASS: beamer
-#+LaTeX_CLASS_OPTIONS: [presentation]
-
-#+LaTeX_HEADER: \usepackage[english]{babel} \usepackage{ae,aecompl}
-#+LaTeX_HEADER: \usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet}
-
-#+LaTeX_HEADER: \usepackage{listings}
-
-#+LaTeX_HEADER:\lstset{language=Python, basicstyle=\ttfamily\bfseries,
-#+LaTeX_HEADER: commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
-#+LaTeX_HEADER: showstringspaces=false, keywordstyle=\color{blue}\bfseries}
-
-#+TITLE: Using Plot Interactively
-#+AUTHOR: FOSSEE
-#+EMAIL:
-#+DATE:
-
-#+DESCRIPTION:
-#+KEYWORDS:
-#+LANGUAGE: en
-#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
-#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:nil pri:nil tags:not-in-toc
-
-* Outline
- - Plot a simple mathemaical function.
- - Using the User Interface of plot figure.
-
-* Error if Ipython not installed
-
-** `ERROR: matplotlib could NOT be imported! Starting normal IPython.`
-
-
-* Plot UI
-#+begin_latex
- \includegraphics[height=0.12in, interpolate=true]{buttons}
-#+end_latex
- - Save
- - Zoom
- - Move axis
- - Back and Forward Button
- - Home
-
-
-* Summary
- - Plotting mathematical functions using plot.
- - Using the UI of plot
- - Save
- - Zoom
- - Move axis
- - Back and Forward Button
- - Home
-
-* Thank You!
-#+begin_latex
- \begin{block}{}
- \begin{center}
- This spoken tutorial has been produced by the
- \textcolor{blue}{FOSSEE} team, which is funded by the
- \end{center}
- \begin{center}
- \textcolor{blue}{National Mission on Education through \\
- Information \& Communication Technology \\
- MHRD, Govt. of India}.
- \end{center}
- \end{block}
-#+end_latex
-
-
diff --git a/using-plot-interactively/slides.tex b/using-plot-interactively/slides.tex
deleted file mode 100644
index 2e1d36b..0000000
--- a/using-plot-interactively/slides.tex
+++ /dev/null
@@ -1,99 +0,0 @@
-% Created 2010-11-11 Thu 13:15
-\documentclass[presentation]{beamer}
-\usepackage[latin1]{inputenc}
-\usepackage[T1]{fontenc}
-\usepackage{fixltx2e}
-\usepackage{graphicx}
-\usepackage{longtable}
-\usepackage{float}
-\usepackage{wrapfig}
-\usepackage{soul}
-\usepackage{t1enc}
-\usepackage{textcomp}
-\usepackage{marvosym}
-\usepackage{wasysym}
-\usepackage{latexsym}
-\usepackage{amssymb}
-\usepackage{hyperref}
-\tolerance=1000
-\usepackage[english]{babel} \usepackage{ae,aecompl}
-\usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet}
-\usepackage{listings}
-\lstset{language=Python, basicstyle=\ttfamily\bfseries,
-commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
-showstringspaces=false, keywordstyle=\color{blue}\bfseries}
-\providecommand{\alert}[1]{\textbf{#1}}
-
-\title{Using Plot Interactively}
-\author{FOSSEE}
-\date{}
-
-\usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent}
-\begin{document}
-
-\maketitle
-
-
-
-
-
-
-
-
-
-\begin{frame}
-\frametitle{Outline}
-\label{sec-1}
-
- How to plot a simple mathematical function.
- Using the User Interface of plot figure.
-\end{frame}
-\begin{frame}
-\frametitle{Error if Ipython not installed}
-\label{sec-2}
-\begin{itemize}
-
-\item `ERROR: matplotlib could NOT be imported! Starting normal IPython.`\\
-\label{sec-2_1}%
-\end{itemize} % ends low level
-\end{frame}
-\begin{frame}
-\frametitle{Plot UI}
-\label{sec-3}
-
- \includegraphics[height=0.12in, interpolate=true]{buttons}
-\begin{itemize}
-\item Save
-\item Zoom
-\item Move axis
-\item Back and Forward Button
-\item Home
-\end{itemize}
-
-
-
-\end{frame}
-\begin{frame}
-\frametitle{Summary}
-\label{sec-4}
-
-\begin{itemize}
-\item Plotting mathematical functions using plot.
- \includegraphics[height=0.12in, interpolate=true]{buttons}
-\item Using the UI of plot
-
-\begin{itemize}
-\item Save
-\item Zoom
-\item Move axis
-\item Back and Forward Button
-\item Home
-\end{itemize}
-
-\end{itemize}
-
-
-
-\end{frame}
-
-\end{document}
diff --git a/using-plot-interactively/zoom.png b/using-plot-interactively/zoom.png
deleted file mode 100644
index c1a7fdf..0000000
--- a/using-plot-interactively/zoom.png
+++ /dev/null
Binary files differ