File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 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 %
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 %
You can’t perform that action at this time.
0 commit comments