File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 708
708
\begin {myboxed }{Quick reminder}
709
709
{\ttfamily
710
710
ax.\textbf {grid }()\\
711
- ax.patch.\textbf {set\_ alpha }(0)\\
712
711
ax.\textbf {set\_ [xy]lim }(vmin, vmax)\\
713
712
ax.\textbf {set\_ [xy]label }(label)\\
714
713
ax.\textbf {set\_ [xy]ticks }(list)\\
715
714
ax.\textbf {set\_ [xy]ticklabels }(list)\\
716
- ax.\textbf {set\_ [sup]title }(title)\\
715
+ ax.\textbf {set\_ title }(title)\\
717
716
ax.\textbf {tick\_ params }(width=10, …)\\
718
717
ax.\textbf {set\_ axis\_ [on|off] }()\\
719
718
\\
719
+ fig.\textbf {suptitle }(title)\\
720
720
fig.\textbf {tight\_ layout }()\\
721
721
plt.\textbf {gcf }(), plt.\textbf {gca }()\\
722
722
mpl.\textbf {rc }('axes', linewidth=1, …)\\
723
- fig.patch.\textbf {set\_ alpha }(0)\\
723
+ {[ fig|ax]} .patch.\textbf {set\_ alpha }(0)\\
724
724
\verb |text=r'$\frac{-e^{i\pi}}{2^n}$' |}
725
725
\end {myboxed }
726
726
%
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ \subsection*{\rmfamily Offline rendering}
114
114
\ begin{lstlisting}
115
115
from matplotlib.backends.backend_agg import FigureCanvas
116
116
canvas = FigureCanvas(Figure()))
117
- ... # draw som stuff
117
+ ... # draw some stuff
118
118
canvas.draw()
119
119
Z = np.array(canvas.renderer.buffer_rgba())
120
120
\end {lstlisting }
You can’t perform that action at this time.
0 commit comments