diff options
-rw-r--r-- | scipy/basic/quickref.tex | 7 | ||||
-rw-r--r-- | scipy/basic/session3.tex | 3 |
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} |