Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8655282

Browse files
authored
Merge pull request matplotlib#58 from jimustafa/master
normalize whitespace
2 parents bebdae0 + 48cb42b commit 8655282

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

handout-beginner.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@ \subsection*{\rmfamily Choose}
160160
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
161161
\begin{lstlisting}[belowskip=-\baselineskip]
162162
X = np.arange(5)
163-
Y = np.random.uniform(0,1,5)
163+
Y = np.random.uniform(0, 1, 5)
164164
ax.errorbar(X, Y, Y/4)
165165
\end{lstlisting}
166166
& \raisebox{-0.75em}{\includegraphics[width=\linewidth]{advanced-errorbar.pdf}}
167167
\end{tabular}
168168
% -----------------------------------------------------------------------------
169169
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
170170
\begin{lstlisting}[belowskip=-\baselineskip]
171-
Z = np.random.normal(0,1,(100,3))
171+
Z = np.random.normal(0, 1, (100,3))
172172

173173
ax.boxplot(Z)
174174
\end{lstlisting}
@@ -186,7 +186,7 @@ \subsection*{\rmfamily Tweak}
186186
% -----------------------------------------------------------------------------
187187
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
188188
\begin{lstlisting}[belowskip=-\baselineskip]
189-
X = np.linspace(0,10,100)
189+
X = np.linspace(0, 10, 100)
190190
Y = np.sin(X)
191191
ax.plot(X, Y, color="black")
192192
\end{lstlisting}
@@ -195,7 +195,7 @@ \subsection*{\rmfamily Tweak}
195195
% -----------------------------------------------------------------------------
196196
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
197197
\begin{lstlisting}[belowskip=-\baselineskip]
198-
X = np.linspace(0,10,100)
198+
X = np.linspace(0, 10, 100)
199199
Y = np.sin(X)
200200
ax.plot(X, Y, linestyle="--")
201201
\end{lstlisting}
@@ -204,7 +204,7 @@ \subsection*{\rmfamily Tweak}
204204
% -----------------------------------------------------------------------------
205205
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
206206
\begin{lstlisting}[belowskip=-\baselineskip]
207-
X = np.linspace(0,10,100)
207+
X = np.linspace(0, 10, 100)
208208
Y = np.sin(X)
209209
ax.plot(X, Y, linewidth=5)
210210
\end{lstlisting}
@@ -213,7 +213,7 @@ \subsection*{\rmfamily Tweak}
213213
% -----------------------------------------------------------------------------
214214
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
215215
\begin{lstlisting}[belowskip=-\baselineskip]
216-
X = np.linspace(0,10,100)
216+
X = np.linspace(0, 10, 100)
217217
Y = np.sin(X)
218218
ax.plot(X, Y, marker="o")
219219
\end{lstlisting}
@@ -231,7 +231,7 @@ \subsection*{\rmfamily Organize}
231231
% -----------------------------------------------------------------------------
232232
\begin{tabular}{@{}m{.821\linewidth}m{.169\linewidth}}
233233
\begin{lstlisting}[belowskip=-\baselineskip]
234-
X = np.linspace(0,10,100)
234+
X = np.linspace(0, 10, 100)
235235
Y1, Y2 = np.sin(X), np.cos(X)
236236
ax.plot(X, Y1, Y2)
237237
\end{lstlisting}

handout-tips.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ \subsection*{\rmfamily Transparency}
8686

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

0 commit comments

Comments
 (0)