@@ -160,15 +160,15 @@ \subsection*{\rmfamily Choose}
160
160
\begin {tabular }{@{}m{.821\linewidth }m{.169\linewidth }}
161
161
\ begin{lstlisting} [belowskip=-\baselineskip]
162
162
X = np.arange(5)
163
- Y = np.random.uniform(0,1, 5)
163
+ Y = np.random.uniform(0, 1, 5)
164
164
ax.errorbar(X, Y, Y/4)
165
165
\end {lstlisting }
166
166
& \raisebox {-0.75em}{\includegraphics [width=\linewidth ]{advanced-errorbar.pdf}}
167
167
\end {tabular }
168
168
% -----------------------------------------------------------------------------
169
169
\begin {tabular }{@{}m{.821\linewidth }m{.169\linewidth }}
170
170
\ begin{lstlisting} [belowskip=-\baselineskip]
171
- Z = np.random.normal(0,1, (100,3))
171
+ Z = np.random.normal(0, 1, (100,3))
172
172
173
173
ax.boxplot(Z)
174
174
\end {lstlisting }
@@ -186,7 +186,7 @@ \subsection*{\rmfamily Tweak}
186
186
% -----------------------------------------------------------------------------
187
187
\begin {tabular }{@{}m{.821\linewidth }m{.169\linewidth }}
188
188
\ begin{lstlisting} [belowskip=-\baselineskip]
189
- X = np.linspace(0,10,100)
189
+ X = np.linspace(0, 10, 100)
190
190
Y = np.sin(X)
191
191
ax.plot(X, Y, color="black")
192
192
\end {lstlisting }
@@ -195,7 +195,7 @@ \subsection*{\rmfamily Tweak}
195
195
% -----------------------------------------------------------------------------
196
196
\begin {tabular }{@{}m{.821\linewidth }m{.169\linewidth }}
197
197
\ begin{lstlisting} [belowskip=-\baselineskip]
198
- X = np.linspace(0,10,100)
198
+ X = np.linspace(0, 10, 100)
199
199
Y = np.sin(X)
200
200
ax.plot(X, Y, linestyle="--")
201
201
\end {lstlisting }
@@ -204,7 +204,7 @@ \subsection*{\rmfamily Tweak}
204
204
% -----------------------------------------------------------------------------
205
205
\begin {tabular }{@{}m{.821\linewidth }m{.169\linewidth }}
206
206
\ begin{lstlisting} [belowskip=-\baselineskip]
207
- X = np.linspace(0,10,100)
207
+ X = np.linspace(0, 10, 100)
208
208
Y = np.sin(X)
209
209
ax.plot(X, Y, linewidth=5)
210
210
\end {lstlisting }
@@ -213,7 +213,7 @@ \subsection*{\rmfamily Tweak}
213
213
% -----------------------------------------------------------------------------
214
214
\begin {tabular }{@{}m{.821\linewidth }m{.169\linewidth }}
215
215
\ begin{lstlisting} [belowskip=-\baselineskip]
216
- X = np.linspace(0,10,100)
216
+ X = np.linspace(0, 10, 100)
217
217
Y = np.sin(X)
218
218
ax.plot(X, Y, marker="o")
219
219
\end {lstlisting }
@@ -231,7 +231,7 @@ \subsection*{\rmfamily Organize}
231
231
% -----------------------------------------------------------------------------
232
232
\begin {tabular }{@{}m{.821\linewidth }m{.169\linewidth }}
233
233
\ begin{lstlisting} [belowskip=-\baselineskip]
234
- X = np.linspace(0,10,100)
234
+ X = np.linspace(0, 10, 100)
235
235
Y1, Y2 = np.sin(X), np.cos(X)
236
236
ax.plot(X, Y1, Y2)
237
237
\end {lstlisting }
0 commit comments