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

Skip to content

Commit ab3db98

Browse files
committed
whitespace
1 parent 1cf758e commit ab3db98

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

cheatsheets.tex

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
Path = fonts/roboto/RobotoCondensed-, Extension = .ttf,
7070
UprightFont = Regular,
7171
ItalicFont = Italic,
72-
BoldFont = Bold ]
72+
BoldFont = Bold ]
7373
\newfontfamily\RobotoSlab{Robot Slab} [
7474
Path = fonts/roboto-slab/RobotoSlab-,
7575
Extension = .ttf,
@@ -79,7 +79,7 @@
7979
Path = fonts/roboto/Roboto-, Extension = .ttf,
8080
UprightFont = Regular,
8181
ItalicFont = Italic,
82-
BoldFont = Black ]
82+
BoldFont = Black ]
8383

8484
% --- Arrays ------------------------------------------------------------------
8585
\usepackage{multicol}
@@ -153,7 +153,7 @@
153153
\pdftooltip{\parameter{#1}{X}}
154154
{Horizontal coordinates of data point. 1D array like or scalar. }
155155
}
156-
156+
157157
\newcommand{\paramy}[1]{%
158158
\pdftooltip{\parameter{#1}{Y}}%
159159
{Vertical coordinates of data point. 1D array like or scalar. }
@@ -181,7 +181,7 @@
181181
{Set line style.}
182182
}
183183

184-
184+
185185
\newcommand{\interpolation}[1]{%
186186
\pdftooltip{\parameter{#1}{interpolation}}
187187
{None, 'none', 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
@@ -283,7 +283,7 @@
283283
fig.show() }
284284
\end{myboxed}
285285
\vspace{\fill}
286-
286+
287287
% --- Figure anatomy --------------------------------------------------------
288288
\begin{myboxed}{Anatomy of a figure}
289289
\includegraphics[width=\columnwidth]{anatomy.pdf}
@@ -307,7 +307,7 @@
307307
{\ttfamily ax=d.new\_horizontal('10\%')}{}
308308
\end{myboxed}
309309
\vspace{\fill}
310-
310+
311311
% --- Getting help ----------------------------------------------------------
312312
\begin{myboxed}{Getting help}
313313
\includegraphics[height=.75em]{www.png}
@@ -333,7 +333,7 @@
333333
{Matplotlib users mailing list}
334334
\end{myboxed}
335335

336-
336+
337337
% --- Basic plots -----------------------------------------------------------
338338
\begin{myboxed}{Basic plots}
339339
\plot{basic-plot.pdf}{\textbf{plot}([X],Y,[fmt],…)}
@@ -564,7 +564,7 @@
564564
%
565565
\vspace{\fill}
566566
%
567-
567+
568568

569569
% --- Colormaps -------------------------------------------------------------
570570
\begin{myboxed}{Colormaps \hfill
@@ -766,7 +766,7 @@
766766
8. Avoid “Chartjunk”\\
767767
9. Message Trumps Beauty\\
768768
10. Get the Right Tool
769-
\end{myboxed}
769+
\end{myboxed}
770770
\end{multicols*}
771771

772772
\begin{multicols*}{5}
@@ -896,8 +896,8 @@
896896
\end{tabular}
897897
\end{myboxed}
898898

899-
900-
899+
900+
901901
\begin{myboxed}{Color names \hfill
902902
\API{https://matplotlib.org/api/colors_api.html} }
903903
\includegraphics[width=\columnwidth]{colornames.pdf}
@@ -913,7 +913,7 @@
913913
\includegraphics[width=\columnwidth]{interpolations.pdf}
914914
\end{myboxed}
915915

916-
916+
917917
\begin{myboxed}{Legend placement}
918918
\includegraphics[width=\columnwidth]{legend-placement.pdf}
919919
ax.\textbf{legend}(loc="string", bbox\_to\_anchor=(x,y))\\
@@ -935,7 +935,7 @@
935935
\tiny G: lower left / {\ttfamily (1.1,0.1)} & \tiny H: center left / {\ttfamily (1.1,0.5)}\\
936936
\tiny I: upper left / {\ttfamily (1.1,0.9)} & \tiny J: lower right / {\ttfamily (0.9,1.1)}\\
937937
\tiny K: lower center / {\ttfamily (0.5,1.1)} & \tiny L: lower left / {\ttfamily (0.1,1.1)}
938-
\end{tabular}
938+
\end{tabular}
939939
\end{myboxed}
940940
%
941941
\vspace{\fill}
@@ -955,7 +955,7 @@
955955
%
956956
\vspace{\fill}
957957
%
958-
958+
959959
%
960960
\begin{myboxed}{How do I …}
961961
\textbf{… resize a figure?}\\
@@ -1038,7 +1038,6 @@
10381038
\smallskip
10391039
\includegraphics[width=\columnwidth]{numfocus.png}
10401040
\end{center}
1041-
1041+
10421042
\end{multicols*}
10431043
\end{document}
1044-

scripts/linestyles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
fig = plt.figure(figsize=(4.25,2*.55))
1010
ax = fig.add_axes([0,0,1,1], xlim=[0.75,10.25], ylim=[0.5,2.5], frameon=False,
11-
xticks=[], yticks=[])
11+
xticks=[], yticks=[])
1212
y = 2
1313

1414
def split(n_segment):
@@ -35,7 +35,7 @@ def split(n_segment):
3535
size=8, ha="center", va="top", family="Source code pro")
3636
ax.text(X0[0]-0.25, y+0.2, "linestyle or ls", family = "Source code pro",
3737
size=14, ha="left", va="baseline")
38-
y -= 1
38+
y -= 1
3939

4040
# Dash capstyle
4141
# ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)