|
16 | 16 | % --- Graphics ----------------------------------------------------------------
|
17 | 17 | \usepackage{tikz}
|
18 | 18 | \usepackage{graphicx}
|
19 |
| -\graphicspath{{./figures/}} |
| 19 | +\graphicspath{{./figures/}{./icons/}{./logos/}} |
20 | 20 | \usepackage[export]{adjustbox}
|
21 | 21 |
|
22 | 22 | % --- Framed boxes ------------------------------------------------------------
|
|
250 | 250 |
|
251 | 251 | \begin{multicols*}{5}
|
252 | 252 |
|
253 |
| - \includegraphics[width=\columnwidth]{logo.pdf} |
| 253 | + \includegraphics[width=\columnwidth]{matplotlib.pdf} |
254 | 254 | %\textbf{\Large \RobotoCon Matplotlib 3.2 cheat sheet}\\
|
255 | 255 | %{\ttfamily https://matplotlib.org} \hfill CC-BY 4.0
|
256 | 256 | % \bigskip
|
|
304 | 304 |
|
305 | 305 | % --- Getting help ----------------------------------------------------------
|
306 | 306 | \begin{myboxed}{Getting help}
|
| 307 | + \includegraphics[height=.75em]{www.png} |
| 308 | + \href{https://matplotlib.org} |
| 309 | + {matplotlib.org}\\ |
| 310 | + \includegraphics[height=.75em]{github.png} |
| 311 | + \href{https://github.com/matplotlib/matplotlib/issues} |
| 312 | + {github.com/matplotlib/matplotlib/issues}\\ |
307 | 313 | \includegraphics[height=.75em]{discourse.pdf}
|
308 | 314 | \href{https://discourse.matplotlib.org}
|
309 | 315 | {discourse.matplotlib.org}\\
|
|
893 | 899 | \vspace{\fill}
|
894 | 900 | %
|
895 | 901 | \begin{myboxed}{Image interpolation}
|
896 |
| - plt.\textbf{imshow}(…, interpolation=…)\\ |
897 |
| - plt.\textbf{contour[f]}(…, interpolation=…)\\ |
| 902 | +%% plt.\textbf{imshow}(…, interpolation=…)\\ |
| 903 | +%% plt.\textbf{contour[f]}(…, interpolation=…)\\ |
898 | 904 | \includegraphics[width=\columnwidth]{interpolations.pdf}
|
899 | 905 | \end{myboxed}
|
900 | 906 |
|
|
958 | 964 | \textbf{… get a reversed colormap?}\\
|
959 | 965 | \hspace*{2.5mm}~$\rightarrow$ plt.get\_cmap(``viridis\_r'')\\
|
960 | 966 | \textbf{… get a discrete colormap?}\\
|
961 |
| - \hspace*{2.5mm}~$\rightarrow$ plt.get\_cmap(``viridis'', 10) |
962 |
| -%% \textbf{… show a figure for one second?}\\ |
963 |
| -%% \hspace*{2.5mm}~$\rightarrow$ plt.show(block=False), time.sleep(1) |
| 967 | + \hspace*{2.5mm}~$\rightarrow$ plt.get\_cmap(``viridis'', 10)\\ |
| 968 | + \textbf{… rotate tick labels ?}\\ |
| 969 | + \hspace*{2.5mm}~$\rightarrow$ plt.[xy]ticks(rotation=90)\\ |
| 970 | + \textbf{… show a figure for one second?}\\ |
| 971 | + \hspace*{2.5mm}~$\rightarrow$ plt.show(block=False), time.sleep(1) |
964 | 972 | \end{myboxed}
|
965 | 973 | %
|
966 | 974 | \vspace{\fill}
|
|
991 | 999 | \href{https://datashader.org/}{\textbf{Datashader}}: Large data processing pipeline\\
|
992 | 1000 | \href{https://plotnine.readthedocs.io/en/latest/}{\textbf{plotnine}}: A Grammar of Graphics for Python
|
993 | 1001 | \end{myboxed}
|
994 |
| - |
| 1002 | + % |
| 1003 | + \begin{center} |
| 1004 | + \href{https://github.com/matplotlib/cheatsheets}{Matplotlib Cheatsheets} (c) 2020 Nicolas P. Rougier\\ |
| 1005 | + Released under a CC-BY 4.0 International License\\ |
| 1006 | + \smallskip |
| 1007 | + \includegraphics[width=\columnwidth]{numfocus.png} |
| 1008 | + \end{center} |
| 1009 | + |
995 | 1010 | \end{multicols*}
|
996 | 1011 | \end{document}
|
997 | 1012 |
|
0 commit comments