提交 f9ba125a 编写于 作者: A Aston Zhang

add inline comment and rm extra space

上级 6577998a
......@@ -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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册