diff --git a/docs/src/assets/ode_tutorial_thick_linear.png b/docs/src/assets/ode_tutorial_thick_linear.png index 226d4b4ac8..814cb59fc3 100644 Binary files a/docs/src/assets/ode_tutorial_thick_linear.png and b/docs/src/assets/ode_tutorial_thick_linear.png differ diff --git a/docs/src/tutorials/ode_example.md b/docs/src/tutorials/ode_example.md index ad4464f93b..9d3e38de40 100644 --- a/docs/src/tutorials/ode_example.md +++ b/docs/src/tutorials/ode_example.md @@ -27,6 +27,7 @@ sol = solve(prob,Tsit5(),reltol=1e-8,abstol=1e-8) using Plots plot(sol,linewidth=5,title="Solution to the linear ODE with a thick line", xaxis="Time (t)",yaxis="u(t) (in μm)",label="My Thick Line!") # legend=false +plot!(sol.t, t->0.5*exp(1.01t),lw=3,ls=:dash,label="True Solution!") ``` where the pieces are described below. @@ -233,6 +234,12 @@ plot(sol,linewidth=5,title="Solution to the linear ODE with a thick line", xaxis="Time (t)",yaxis="u(t) (in μm)",label="My Thick Line!") # legend=false ``` +We can then add to the plot using the `plot!` command: + +```julia +plot!(sol.t,t->0.5*exp(1.01t),lw=3,ls=:dash,label="True Solution!") +``` + ![ode_tutorial_thick_linear](../assets/ode_tutorial_thick_linear.png) ## Example 2: Solving Systems of Equations