Skip to content

Commit

Permalink
Merge pull request #135 from camriddell/master
Browse files Browse the repository at this point in the history
Replace calls to fig.show() with plt.show()
  • Loading branch information
rougier authored Jun 5, 2023
2 parents 05fbbb9 + e98828a commit 898944b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cheatsheets.tex
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
ax.plot(X, Y, color='green')\\
\\
fig.savefig(``figure.pdf'')\\
fig.show() }
plt.show() }
\end{myboxed}
\vspace{\fill}

Expand Down
2 changes: 1 addition & 1 deletion handout-beginner.tex
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ \section*{\LARGE \rmfamily
\begin{lstlisting}
fig, ax = plt.subplots()
ax.plot(X, Y)
fig.show()
plt.show()
\end{lstlisting}
%
\fbox{4} \textbf{Observe} \medskip\\
Expand Down

0 comments on commit 898944b

Please sign in to comment.