Skip to content

Commit 2c0fb72

Browse files
authored
Merge pull request #103 from StefRe/fix/suptitle
Fix suptitle setting
2 parents 91ebc86 + 9915aa9 commit 2c0fb72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: cheatsheets.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -708,19 +708,19 @@
708708
\begin{myboxed}{Quick reminder}
709709
{\ttfamily
710710
ax.\textbf{grid}()\\
711-
ax.patch.\textbf{set\_alpha}(0)\\
712711
ax.\textbf{set\_[xy]lim}(vmin, vmax)\\
713712
ax.\textbf{set\_[xy]label}(label)\\
714713
ax.\textbf{set\_[xy]ticks}(list)\\
715714
ax.\textbf{set\_[xy]ticklabels}(list)\\
716-
ax.\textbf{set\_[sup]title}(title)\\
715+
ax.\textbf{set\_title}(title)\\
717716
ax.\textbf{tick\_params}(width=10, …)\\
718717
ax.\textbf{set\_axis\_[on|off]}()\\
719718
\\
719+
fig.\textbf{suptitle}(title)\\
720720
fig.\textbf{tight\_layout}()\\
721721
plt.\textbf{gcf}(), plt.\textbf{gca}()\\
722722
mpl.\textbf{rc}('axes', linewidth=1, …)\\
723-
fig.patch.\textbf{set\_alpha}(0)\\
723+
{[fig|ax]}.patch.\textbf{set\_alpha}(0)\\
724724
\verb|text=r'$\frac{-e^{i\pi}}{2^n}$'|}
725725
\end{myboxed}
726726
%

Diff for: handout-tips.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ \subsection*{\rmfamily Offline rendering}
114114
\begin{lstlisting}
115115
from matplotlib.backends.backend_agg import FigureCanvas
116116
canvas = FigureCanvas(Figure()))
117-
... # draw som stuff
117+
... # draw some stuff
118118
canvas.draw()
119119
Z = np.array(canvas.renderer.buffer_rgba())
120120
\end{lstlisting}

0 commit comments

Comments
 (0)