summaryrefslogtreecommitdiff
path: root/scipy
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-12-23 14:48:34 +0530
committerPrabhu Ramachandran2016-12-23 14:48:34 +0530
commit211d0d6e1f81e9e693abfc49c26c9bb592aacdb5 (patch)
tree770e14173ed4ccad88006fd4e3f0908db86de988 /scipy
parentc28e567f5789bf66795a6894e506fbb5a7228ca4 (diff)
downloadpython-workshops-211d0d6e1f81e9e693abfc49c26c9bb592aacdb5.tar.gz
python-workshops-211d0d6e1f81e9e693abfc49c26c9bb592aacdb5.tar.bz2
python-workshops-211d0d6e1f81e9e693abfc49c26c9bb592aacdb5.zip
Fix tiny error in session3 slide.
Also add a section to quickref on imshow/imread/colorbar.
Diffstat (limited to 'scipy')
-rw-r--r--scipy/basic/quickref.tex7
-rw-r--r--scipy/basic/session3.tex3
2 files changed, 9 insertions, 1 deletions
diff --git a/scipy/basic/quickref.tex b/scipy/basic/quickref.tex
index 87dc5cc..adfaba4 100644
--- a/scipy/basic/quickref.tex
+++ b/scipy/basic/quickref.tex
@@ -276,6 +276,13 @@ def f(y, t):
{\ex \typ{data = csv2rec('data.csv')}} from csv to record array
+\hr\textbf{Basic image processing}
+
+{\ex \typ{from pylab import imread, imshow, colorbar}}\\
+{\ex \typ{a = imread('lena.png')}}: a is a NumPy array\\
+{\ex \typ{imshow(a)}}\\
+{\ex \typ{colorbar()}}\\
+
\hr\textbf{3D plotting with Mayavi's \typ{mlab}}
{\ex \typ{from mayavi import mlab}} Ready to Go!\\
diff --git a/scipy/basic/session3.tex b/scipy/basic/session3.tex
index cd6958b..2de9b05 100644
--- a/scipy/basic/session3.tex
+++ b/scipy/basic/session3.tex
@@ -533,7 +533,7 @@ This is what our intention is.
Or
-\[T_sq = A \cdot p \]
+\[T_{sq} = A \cdot p \]
\end{frame}
@@ -648,6 +648,7 @@ In []: img = random.random(
...: )
In []: clf()
In []: imshow(img)
+In []: colorbar()
\end{lstlisting}
\end{frame}