Skip to content

Commit

Permalink
add inline comment and rm extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
Aston Zhang committed Aug 29, 2019
1 parent 6577998 commit f9ba125
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chapter_optimization/optimization-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ def f(x):
d2l.set_figsize((4.5, 2.5))
x = np.arange(-1.0, 2.0, 0.1)
# 逗号表示只取返回列表中的第一个元素
fig, = d2l.plt.plot(x, f(x))
fig, = d2l.plt.plot(x, f(x)) # 逗号表示只取返回列表中的第一个元素
fig.axes.annotate('local minimum', xy=(-0.3, -0.25), xytext=(-0.77, -1.0),
arrowprops=dict(arrowstyle='->'))
fig.axes.annotate('global minimum', xy=(1.1, -0.95), xytext=(0.6, 0.8),
Expand Down

0 comments on commit f9ba125

Please sign in to comment.