Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2df29d

Browse files
committed
fix matplotlib logo
1 parent c3b4509 commit a2df29d

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.bumpversion.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ current_version = 3.4.2
55
search = Matplotlib {current_version}
66
replace = Matplotlib {new_version}
77

8+
[bumpversion:file:./Makefile]
9+
search = v{current_version}
10+
replace = v{new_version}
11+
12+
[bumpversion:file:./cheatsheets.tex]
13+
search = Version {current_version}
14+
replace = Version {new_version}
15+
816
[bumpversion:file:./requirements/requirements.in]
917
search = matplotlib=={current_version}
1018
replace = matplotlib=={new_version}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ all: logos figures cheatsheets handouts
1111

1212
.PHONY: logos
1313
logos:
14-
cd logos && python mpl-logos2.py && pdfcrop mpl-logo2.pdf mpl-logo2.pdf
14+
wget https://github.com/matplotlib/matplotlib/raw/v3.4.2/doc/_static/logo2.png -O ./logos/logo2.png
1515

1616
.PHONY: figures
1717
figures:

cheatsheets.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
% --- Graphics ----------------------------------------------------------------
1717
\usepackage{tikz}
1818
\usepackage{graphicx}
19+
\usepackage[percent]{overpic}
1920
\graphicspath{{./figures/}{./icons/}{./logos/}}
2021
\usepackage[export]{adjustbox}
2122

@@ -260,8 +261,10 @@
260261
\scriptsize
261262

262263
\begin{multicols*}{5}
263-
264-
\includegraphics[width=\columnwidth]{mpl-logo2.pdf}
264+
\begin{overpic}[width=\columnwidth,tics=6,trim=12 6 18 6, clip]{logo2.png}
265+
\put (16.5,1.5) {\scriptsize\RobotoCon \textcolor[HTML]{11557c}{Cheat sheet}}
266+
\put (80,1.5) {\tiny\Roboto \textcolor[HTML]{11557c}{Version 3.4.2}}
267+
\end{overpic}
265268
%\textbf{\Large \RobotoCon Matplotlib 3.2 cheat sheet}\\
266269
%{\ttfamily https://matplotlib.org} \hfill CC-BY 4.0
267270
% \bigskip

0 commit comments

Comments
 (0)