Skip to content

Commit

Permalink
Update calculus.md
Browse files Browse the repository at this point in the history
If users are running the code locally in VSCode, the figure won't appear if lack this line of code
  • Loading branch information
Raine-4 authored Jul 6, 2024
1 parent 23d7a5a commit a2b29f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chapter_preliminaries/calculus.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def plot(X, Y=None, xlabel=None, ylabel=None, legend=[], xlim=None,
for x, y, fmt in zip(X, Y, fmts):
axes.plot(x,y,fmt) if len(x) else axes.plot(y,fmt)
set_axes(axes, xlabel, ylabel, xlim, ylim, xscale, yscale, legend)
# d2l.plt.show() # if you are running the code locally and can't see the figure, try add this line of code.
```

Now we can [**plot the function $u = f(x)$ and its tangent line $y = 2x - 3$ at $x=1$**],
Expand Down

0 comments on commit a2b29f9

Please sign in to comment.