Skip to content

Commit 80ff15d

Browse files
committed
Restructured repository + numfocus logo
1 parent 56612ff commit 80ff15d

18 files changed

+85
-8
lines changed

cheatsheets.tex

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
% --- Graphics ----------------------------------------------------------------
1717
\usepackage{tikz}
1818
\usepackage{graphicx}
19-
\graphicspath{{./figures/}}
19+
\graphicspath{{./figures/}{./icons/}{./logos/}}
2020
\usepackage[export]{adjustbox}
2121

2222
% --- Framed boxes ------------------------------------------------------------
@@ -250,7 +250,7 @@
250250

251251
\begin{multicols*}{5}
252252

253-
\includegraphics[width=\columnwidth]{logo.pdf}
253+
\includegraphics[width=\columnwidth]{matplotlib.pdf}
254254
%\textbf{\Large \RobotoCon Matplotlib 3.2 cheat sheet}\\
255255
%{\ttfamily https://matplotlib.org} \hfill CC-BY 4.0
256256
% \bigskip
@@ -304,6 +304,12 @@
304304

305305
% --- Getting help ----------------------------------------------------------
306306
\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}\\
307313
\includegraphics[height=.75em]{discourse.pdf}
308314
\href{https://discourse.matplotlib.org}
309315
{discourse.matplotlib.org}\\
@@ -893,8 +899,8 @@
893899
\vspace{\fill}
894900
%
895901
\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=…)\\
898904
\includegraphics[width=\columnwidth]{interpolations.pdf}
899905
\end{myboxed}
900906

@@ -958,9 +964,11 @@
958964
\textbf{… get a reversed colormap?}\\
959965
\hspace*{2.5mm}~$\rightarrow$ plt.get\_cmap(``viridis\_r'')\\
960966
\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)
964972
\end{myboxed}
965973
%
966974
\vspace{\fill}
@@ -991,7 +999,14 @@
991999
\href{https://datashader.org/}{\textbf{Datashader}}: Large data processing pipeline\\
9921000
\href{https://plotnine.readthedocs.io/en/latest/}{\textbf{plotnine}}: A Grammar of Graphics for Python
9931001
\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+
9951010
\end{multicols*}
9961011
\end{document}
9971012

File renamed without changes.
File renamed without changes.

icons/github.png

22.6 KB
Loading

icons/github.svg

Lines changed: 57 additions & 0 deletions
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)