|
69 | 69 | Path = fonts/roboto/RobotoCondensed-, Extension = .ttf, |
70 | 70 | UprightFont = Regular, |
71 | 71 | ItalicFont = Italic, |
72 | | - BoldFont = Bold ] |
| 72 | + BoldFont = Bold ] |
73 | 73 | \newfontfamily\RobotoSlab{Robot Slab} [ |
74 | 74 | Path = fonts/roboto-slab/RobotoSlab-, |
75 | 75 | Extension = .ttf, |
|
79 | 79 | Path = fonts/roboto/Roboto-, Extension = .ttf, |
80 | 80 | UprightFont = Regular, |
81 | 81 | ItalicFont = Italic, |
82 | | - BoldFont = Black ] |
| 82 | + BoldFont = Black ] |
83 | 83 |
|
84 | 84 | % --- Arrays ------------------------------------------------------------------ |
85 | 85 | \usepackage{multicol} |
|
153 | 153 | \pdftooltip{\parameter{#1}{X}} |
154 | 154 | {Horizontal coordinates of data point. 1D array like or scalar. } |
155 | 155 | } |
156 | | - |
| 156 | + |
157 | 157 | \newcommand{\paramy}[1]{% |
158 | 158 | \pdftooltip{\parameter{#1}{Y}}% |
159 | 159 | {Vertical coordinates of data point. 1D array like or scalar. } |
|
181 | 181 | {Set line style.} |
182 | 182 | } |
183 | 183 |
|
184 | | - |
| 184 | + |
185 | 185 | \newcommand{\interpolation}[1]{% |
186 | 186 | \pdftooltip{\parameter{#1}{interpolation}} |
187 | 187 | {None, 'none', 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36', |
|
283 | 283 | fig.show() } |
284 | 284 | \end{myboxed} |
285 | 285 | \vspace{\fill} |
286 | | - |
| 286 | + |
287 | 287 | % --- Figure anatomy -------------------------------------------------------- |
288 | 288 | \begin{myboxed}{Anatomy of a figure} |
289 | 289 | \includegraphics[width=\columnwidth]{anatomy.pdf} |
|
307 | 307 | {\ttfamily ax=d.new\_horizontal('10\%')}{} |
308 | 308 | \end{myboxed} |
309 | 309 | \vspace{\fill} |
310 | | - |
| 310 | + |
311 | 311 | % --- Getting help ---------------------------------------------------------- |
312 | 312 | \begin{myboxed}{Getting help} |
313 | 313 | \includegraphics[height=.75em]{www.png} |
|
333 | 333 | {Matplotlib users mailing list} |
334 | 334 | \end{myboxed} |
335 | 335 |
|
336 | | - |
| 336 | + |
337 | 337 | % --- Basic plots ----------------------------------------------------------- |
338 | 338 | \begin{myboxed}{Basic plots} |
339 | 339 | \plot{basic-plot.pdf}{\textbf{plot}([X],Y,[fmt],…)} |
|
564 | 564 | % |
565 | 565 | \vspace{\fill} |
566 | 566 | % |
567 | | - |
| 567 | + |
568 | 568 |
|
569 | 569 | % --- Colormaps ------------------------------------------------------------- |
570 | 570 | \begin{myboxed}{Colormaps \hfill |
|
766 | 766 | 8. Avoid “Chartjunk”\\ |
767 | 767 | 9. Message Trumps Beauty\\ |
768 | 768 | 10. Get the Right Tool |
769 | | - \end{myboxed} |
| 769 | + \end{myboxed} |
770 | 770 | \end{multicols*} |
771 | 771 |
|
772 | 772 | \begin{multicols*}{5} |
|
896 | 896 | \end{tabular} |
897 | 897 | \end{myboxed} |
898 | 898 |
|
899 | | - |
900 | | - |
| 899 | + |
| 900 | + |
901 | 901 | \begin{myboxed}{Color names \hfill |
902 | 902 | \API{https://matplotlib.org/api/colors_api.html} } |
903 | 903 | \includegraphics[width=\columnwidth]{colornames.pdf} |
|
913 | 913 | \includegraphics[width=\columnwidth]{interpolations.pdf} |
914 | 914 | \end{myboxed} |
915 | 915 |
|
916 | | - |
| 916 | + |
917 | 917 | \begin{myboxed}{Legend placement} |
918 | 918 | \includegraphics[width=\columnwidth]{legend-placement.pdf} |
919 | 919 | ax.\textbf{legend}(loc="string", bbox\_to\_anchor=(x,y))\\ |
|
935 | 935 | \tiny G: lower left / {\ttfamily (1.1,0.1)} & \tiny H: center left / {\ttfamily (1.1,0.5)}\\ |
936 | 936 | \tiny I: upper left / {\ttfamily (1.1,0.9)} & \tiny J: lower right / {\ttfamily (0.9,1.1)}\\ |
937 | 937 | \tiny K: lower center / {\ttfamily (0.5,1.1)} & \tiny L: lower left / {\ttfamily (0.1,1.1)} |
938 | | - \end{tabular} |
| 938 | + \end{tabular} |
939 | 939 | \end{myboxed} |
940 | 940 | % |
941 | 941 | \vspace{\fill} |
|
955 | 955 | % |
956 | 956 | \vspace{\fill} |
957 | 957 | % |
958 | | - |
| 958 | + |
959 | 959 | % |
960 | 960 | \begin{myboxed}{How do I …} |
961 | 961 | \textbf{… resize a figure?}\\ |
|
1038 | 1038 | \smallskip |
1039 | 1039 | \includegraphics[width=\columnwidth]{numfocus.png} |
1040 | 1040 | \end{center} |
1041 | | - |
| 1041 | + |
1042 | 1042 | \end{multicols*} |
1043 | 1043 | \end{document} |
1044 | | - |
0 commit comments