diff options
-rwxr-xr-x | day1/cheatsheet1.tex | 4 | ||||
-rwxr-xr-x | day1/cheatsheet2.tex | 4 | ||||
-rwxr-xr-x | day1/cheatsheet4.tex | 4 | ||||
-rw-r--r-- | day1/cheatsheet5.tex | 2 | ||||
-rwxr-xr-x | day1/cheatsheet6.tex | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/day1/cheatsheet1.tex b/day1/cheatsheet1.tex index 00488c8..a5f59e1 100755 --- a/day1/cheatsheet1.tex +++ b/day1/cheatsheet1.tex @@ -65,7 +65,7 @@ Plots the line with linewidth = 2 \subsection{label and title} \typ{In []: xlabel('Length') #sets *x* axis label to Length}\\ \typ{In []: ylabel('Time') #sets *y* axis label to Time.}\\ -\typ{In []: title('Sinusoid') #sets title of plot}\\ +\typ{In []: title('Sinusoids') #sets title of plot}\\ \\ \textbf{Additionally}\\ Pylab accepts TeX equation expressions in any text expression. To get something like:\\ @@ -78,7 +78,7 @@ Same way one can have TeX expression on xlabel, ylabel etc. \subsection{legends} \typ{In []: legend('sin(x)',loc=center)} \\ -Place a legend on the current plot at location *loc*.\\ +Places a legend on the current plot at location *loc*.\\ Apart from \typ{center}, some other \typ{loc} which can be specified are: \begin{lstlisting} 'best' diff --git a/day1/cheatsheet2.tex b/day1/cheatsheet2.tex index fa76388..acffa20 100755 --- a/day1/cheatsheet2.tex +++ b/day1/cheatsheet2.tex @@ -119,11 +119,11 @@ In []: print greet.split() Out[]: ['hello', 'world'] In []: greet = ``hello, world'' In []: print greet.split(',') -Out[]: ['hello', ' world'] # Note the whitespace before 'world' +Out[]: ['hello', ' world'] # Note the white space before 'world' \end{lstlisting} A string can be split based on the delimiter specified within quotes. A combination of more than one delimiter can also be used.\\ \typ{In []: greet.split(', ')}\\ -\typ{Out[]: ['hello', 'world']}\\Note the whitespace is not there anymore. +\typ{Out[]: ['hello', 'world']}\\Note the white space is not there anymore. \newpage \section{Plotting from Files} \subsection{Opening files} diff --git a/day1/cheatsheet4.tex b/day1/cheatsheet4.tex index d89e8a2..7410368 100755 --- a/day1/cheatsheet4.tex +++ b/day1/cheatsheet4.tex @@ -52,7 +52,7 @@ array([[ 1, 1, 2], In []: C[1,2] Out[]: 1 \end{lstlisting} -Two indexes seperated by \typ{','} specifies [row, column]. So \typ{C[1,2]} gets third element of second row(indices starts from 0). +Two indexes separated by \typ{','} specifies [row, column]. So \typ{C[1,2]} gets third element of second row(indices starts from 0). \newpage \begin{lstlisting} In []: C[1] @@ -123,7 +123,7 @@ array([[ 0, 0], \typ{':2'} => Start from first column, till and excluding third column. \newpage \subsection{Striding} -Often apart from submatrix, one needs to get some mechanism to jump a step. For example, how can we have all alternate rows of a Matrix. \\ +Often apart from sub-matrix, one needs to get some mechanism to jump a step. For example, how can we have all alternate rows of a Matrix. \\ Following method will return Matrix with alternate rows. \begin{lstlisting} In []: C[::2,:] diff --git a/day1/cheatsheet5.tex b/day1/cheatsheet5.tex index 0a0f600..cf9b405 100644 --- a/day1/cheatsheet5.tex +++ b/day1/cheatsheet5.tex @@ -15,7 +15,7 @@ In [2]: x, y = loadtxt('points.txt', unpack = True) #load data file directly into Arrays. \end{verbatim} \section{} -Interploate +Interpolate \begin{verbatim} In []: from scipy.interpolate import splrep In []: tck = splrep(x,y) #get spline curve representation for x,y. diff --git a/day1/cheatsheet6.tex b/day1/cheatsheet6.tex index 7eddb8f..5d3cfdf 100755 --- a/day1/cheatsheet6.tex +++ b/day1/cheatsheet6.tex @@ -24,7 +24,7 @@ showstringspaces=false, \large{FOSSEE} \end{center} \section{Solving linear equations} -Condier following sets of equations:\\ +Consider following sets of equations:\\ \begin{align*} 3x + 2y - z & = 1 \\ 2x - 2y + 4z & = -2 \\ |