Skip to content

Commit 0f86a11

Browse files
committed
Added a few more tips
1 parent 5fc487e commit 0f86a11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cheatsheets.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,10 +960,14 @@
960960
\hspace*{2.5mm}~$\rightarrow$ ax.fill\_between(X, Y+error, Y-error)\\
961961
\textbf{… draw a rectangle?}\\
962962
\hspace*{2.5mm}~$\rightarrow$ ax.add\_patch(plt.Rectangle((0, 0),1,1)\\
963+
\textbf{… draw a vertical line?}\\
964+
\hspace*{2.5mm}~$\rightarrow$ ax.axvline(x=0.5)\\
963965
\textbf{… draw outside frame?}\\
964966
\hspace*{2.5mm}~$\rightarrow$ ax.plot(…, clip\_on=False)\\
965967
\textbf{… use transparency?}\\
966968
\hspace*{2.5mm}~$\rightarrow$ ax.plot(…, alpha=0.25)\\
969+
\textbf{… convert an RGB image into a gray image? }\\
970+
\hspace*{2.5mm}~$\rightarrow$ gray = 0.2989*R+0.5870*G+0.1140*B\\
967971
\textbf{… set figure background color?}\\
968972
\hspace*{2.5mm}~$\rightarrow$ fig.patch.set\_facecolor(``grey'')\\
969973
\textbf{… get a reversed colormap?}\\

0 commit comments

Comments
 (0)