Skip to content

Commit 821f05e

Browse files
committed
Added connections styles and fix spacing
1 parent 0f86a11 commit 821f05e

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

cheatsheets.tex

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,14 @@
931931
K: lower center / (.5,1.1) & L: lower left / (.1,1.1)
932932
\end{tabular}
933933
\end{myboxed}
934-
934+
%
935+
\vspace{\fill}
936+
%
937+
\begin{myboxed}{Annotation connection styles \hfill
938+
\API{https://matplotlib.org/tutorials/text/annotations.html} }
939+
\includegraphics[width=\columnwidth]{annotation-connection-styles.pdf}
940+
\end{myboxed}
941+
935942
\vfill\null \columnbreak
936943

937944
%
@@ -983,14 +990,18 @@
983990
\begin{myboxed}{Performance tips}
984991
\smallskip
985992
{\ttfamily \fontsize{6pt}{7pt}\selectfont
993+
%
986994
\textcolor{red}{scatter(X, Y) \hfill slow}\\
987-
plot(X, Y, marker="o", ls="") \hfill fast\\
988-
\hrule \smallskip
995+
plot(X, Y, marker="o", ls="") \hfill fast%
996+
\vskip.5\baselineskip
997+
%
989998
\textcolor{red}{for i in range(n): plot(X[i]) \hfill slow}\\
990-
plot(sum([x+[None] for x in X],[])) \hfill fast\\
991-
\hrule \smallskip
999+
plot(sum([x+[None] for x in X],[])) \hfill fast%
1000+
\vskip.5\baselineskip
1001+
%
9921002
\textcolor{red}{cla(), imshow(…), canvas.draw() \hfill slow}\\
993-
im.set\_data(…), canvas.draw() \hfill fast\smallskip
1003+
im.set\_data(…), canvas.draw() \hfill fast%
1004+
\vskip.1\baselineskip
9941005
}
9951006
\end{myboxed}
9961007
%

0 commit comments

Comments
 (0)