Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions handout-beginner.tex
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ \subsection*{\rmfamily Choose}
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
X = np.arange(5)
Y = np.random.uniform(0,1,5)
Y = np.random.uniform(0, 1, 5)
ax.errorbar(X, Y, Y/4)
\end{lstlisting}
& \raisebox{-0.75em}{\includegraphics[width=\linewidth]{advanced-errorbar.pdf}}
\end{tabular}
% -----------------------------------------------------------------------------
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
Z = np.random.normal(0,1,(100,3))
Z = np.random.normal(0, 1, (100,3))

ax.boxplot(Z)
\end{lstlisting}
Expand All @@ -186,7 +186,7 @@ \subsection*{\rmfamily Tweak}
% -----------------------------------------------------------------------------
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
X = np.linspace(0,10,100)
X = np.linspace(0, 10, 100)
Y = np.sin(X)
ax.plot(X, Y, color="black")
\end{lstlisting}
Expand All @@ -195,7 +195,7 @@ \subsection*{\rmfamily Tweak}
% -----------------------------------------------------------------------------
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
X = np.linspace(0,10,100)
X = np.linspace(0, 10, 100)
Y = np.sin(X)
ax.plot(X, Y, linestyle="--")
\end{lstlisting}
Expand All @@ -204,7 +204,7 @@ \subsection*{\rmfamily Tweak}
% -----------------------------------------------------------------------------
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
X = np.linspace(0,10,100)
X = np.linspace(0, 10, 100)
Y = np.sin(X)
ax.plot(X, Y, linewidth=5)
\end{lstlisting}
Expand All @@ -213,7 +213,7 @@ \subsection*{\rmfamily Tweak}
% -----------------------------------------------------------------------------
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
X = np.linspace(0,10,100)
X = np.linspace(0, 10, 100)
Y = np.sin(X)
ax.plot(X, Y, marker="o")
\end{lstlisting}
Expand All @@ -231,7 +231,7 @@ \subsection*{\rmfamily Organize}
% -----------------------------------------------------------------------------
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
X = np.linspace(0,10,100)
X = np.linspace(0, 10, 100)
Y1, Y2 = np.sin(X), np.cos(X)
ax.plot(X, Y1, Y2)
\end{lstlisting}
Expand Down
4 changes: 2 additions & 2 deletions handout-tips.tex
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ \subsection*{\rmfamily Transparency}

\begin{tabular}{@{}m{.774\linewidth}m{.216\linewidth}}
\begin{lstlisting}[belowskip=-\baselineskip]
X = np.random.normal(-1,1,500)
Y = np.random.normal(-1,1,500)
X = np.random.normal(-1, 1, 500)
Y = np.random.normal(-1, 1, 500)
ax.scatter(X, Y, 50, "0.0", lw=2) # optional
ax.scatter(X, Y, 50, "1.0", lw=0) # optional
ax.scatter(X, Y, 40, "C1", lw=0, alpha=0.1)
Expand Down