use plotly; fix bitrot

This commit is contained in:
jverzani
2024-06-07 13:07:09 -04:00
parent 0bcc8b5a6c
commit 55f37a6dfb
59 changed files with 423 additions and 176 deletions

View File

@@ -9,6 +9,7 @@ This section uses the following add-on packages:
```{julia}
using CalculusWithJulia
using Plots
plotly()
using SymPy
```
@@ -624,6 +625,8 @@ Select the graph for which the limit at $a$ is infinite.
```{julia}
#| hold: true
#| echo: false
gr()
p1 = plot(;axis=nothing, legend=false)
title!(p1, "(a)")
plot!(p1, x -> x^2, 0, 2, color=:black)
@@ -653,6 +656,7 @@ l = @layout[a b; c d]
p = plot(p1, p2, p3, p4, layout=l)
imgfile = tempname() * ".png"
savefig(p, imgfile)
plotly()
hotspotq(imgfile, (1/2,1), (1/2,1))
```
@@ -665,6 +669,7 @@ Select the graph for which the limit at $\infty$ appears to be defined.
```{julia}
#| hold: true
#| echo: false
gr()
p1 = plot(;axis=nothing, legend=false)
title!(p1, "(a)")
plot!(p1, x -> x^2, 0, 2, color=:black)
@@ -690,6 +695,7 @@ l = @layout[a b; c d]
p = plot(p1, p2, p3, p4, layout=l)
imgfile = tempname() * ".png"
savefig(p, imgfile)
plotly()
hotspotq(imgfile, (1/2,1), (1/2,1))
```